Update index.py

This commit is contained in:
midoks
2022-08-06 16:30:17 +08:00
parent 85929bdb4d
commit acfc300d81
+1 -2
View File
@@ -2199,10 +2199,9 @@ def doFullSync(version=''):
print("同步文件", "start")
cmd = 'scp -P' + str(master_port) + ' -i ' + SSH_PRIVATE_KEY + \
' root@' + ip + ':/tmp/dump.sql.gz /tmp'
print(cmd)
cmd = "spawn " + cmd + "\n" + \
'expect {"yes/no" { send -- yes\r;exp_continue; }eof};'
print(cmd)
r = mw.execShell(cmd)
print("同步文件", "end")
if r[0] == '':