Skip to content
Snippets Groups Projects
Commit 7152c7c1 authored by Denny's avatar Denny
Browse files

rsync root directory in EC2 script

parent 942e604c
No related branches found
No related tags found
No related merge requests found
...@@ -448,7 +448,7 @@ def deploy_files(conn, root_dir, opts, master_nodes, slave_nodes, zoo_nodes): ...@@ -448,7 +448,7 @@ def deploy_files(conn, root_dir, opts, master_nodes, slave_nodes, zoo_nodes):
dest.close() dest.close()
# rsync the whole directory over to the master machine # rsync the whole directory over to the master machine
command = (("rsync -rv -e 'ssh -o StrictHostKeyChecking=no -i %s' " + command = (("rsync -rv -e 'ssh -o StrictHostKeyChecking=no -i %s' " +
"'%s/' '%s@%s:~'") % (opts.identity_file, tmp_dir, opts.user, active_master)) "'%s/' '%s@%s:/'") % (opts.identity_file, tmp_dir, opts.user, active_master))
subprocess.check_call(command, shell=True) subprocess.check_call(command, shell=True)
# Remove the temp directory we created above # Remove the temp directory we created above
shutil.rmtree(tmp_dir) shutil.rmtree(tmp_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment