mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -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] == '':
|
||||
|
||||
Reference in New Issue
Block a user