Commit 2248e5af authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed ssh command not syncing

parent 91b48303
......@@ -37,7 +37,7 @@ python do_target_scp () {
except subprocess.CalledProcessError:
raise Exception("Copying to target requires access by public key. Run: ssh-copy-id "+REMOTE_USER+"@"+REMOTE_IP)
cmd = "ssh -i "+IDENTITY_FILE+" "+REMOTE_USER+"@"+REMOTE_IP+" tar -C / -xzpf /image.tar.gz; rm -f /image.tar.gz; sync"
cmd = "ssh -i "+IDENTITY_FILE+" "+REMOTE_USER+"@"+REMOTE_IP+" 'tar -C / -xzpf /image.tar.gz; rm -f /image.tar.gz; sync'"
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
}
......
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