aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run.sh2
-rwxr-xr-xscripts/run_client.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/run.sh b/scripts/run.sh
index 53d9923..668f46b 100755
--- a/scripts/run.sh
+++ b/scripts/run.sh
@@ -212,7 +212,7 @@ function start_all {
get_node_info "$workdir/peer_list.txt"
get_server_map "$workdir/server_map.txt"
echo "copying configuration file"
- cp "$conf_src" "$tmpldir/$proj_conf_name"
+ rsync -avP "$conf_src" "$tmpldir/$proj_conf_name"
for rid in "${!nodes[@]}"; do
local node_tmpldir="$workdir/$rid"
local ip="$(get_ip_by_id $rid)"
diff --git a/scripts/run_client.sh b/scripts/run_client.sh
index 090dce1..f937221 100755
--- a/scripts/run_client.sh
+++ b/scripts/run_client.sh
@@ -186,7 +186,7 @@ function start_all {
get_node_info "$workdir/peer_list.txt"
get_client_info "$workdir/client_list.txt"
echo "coyping configuration file"
- cp "$conf_src" "$tmpldir/$proj_conf_name"
+ rsync -avP "$conf_src" "$tmpldir/$proj_conf_name"
local nclient="${#cip_list[@]}"
local i=0
for tuple in "${node_list[@]}"; do