From 3a7519b66b65fc03b579b67e7ecec5d7dc486fd4 Mon Sep 17 00:00:00 2001 From: Josue-T Date: Sat, 9 Nov 2019 18:08:59 +0100 Subject: [PATCH] Use rsync to push package and delete old files --- sub_scripts/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub_scripts/launcher.sh b/sub_scripts/launcher.sh index 44b902c..3f64af5 100755 --- a/sub_scripts/launcher.sh +++ b/sub_scripts/launcher.sh @@ -286,7 +286,7 @@ $(cat "$script_dir/sub_scripts/Build_lxc.log")" COPY_LOG 1 # Copy the package into the container. - scp -rq "$package_path" "$lxc_name": >> "$test_result" 2>&1 + rsync -rq --delete "$package_path" "$lxc_name": >> "$test_result" 2>&1 # Execute the command given in argument in the container and log its results. ssh $arg_ssh $lxc_name "$1 > /dev/null 2>> temp_yunohost-cli.log; exit \$?" >> "$test_result" 2>&1