Commit 3d348e2f authored by 金凯强's avatar 金凯强 🎨

校验出错修正

parent 15b3130e
Pipeline #21424 passed with stage
in 50 seconds
......@@ -503,7 +503,7 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
'''
out, err = ssh.exec_command('docker -v')
if 'Docker version' not in out or 'Docker version' not in err:
if 'Docker version' not in out:
logger.info('验证远端服务器是否安装docker日志:{}'.format(err))
logger.info('远程升级失败')
raise HSException('远端服务器未安装docker,请先安装后再升级')
......@@ -127,8 +127,8 @@ if __name__ == "__main__":
close_firewalld()
install_docker()
install_docker_compose()
os.system('mkdir /huansi')
os.system('mkdir /huansi/upgrade')
os.system('mkdir -p /huansi')
os.system('mkdir -p /huansi/upgrade')
print('*****************************************************')
print('********服务器需要重启,请输入reboot重启服务器*************')
print('*****************************************************')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment