Use rsync to push package and delete old files

This commit is contained in:
Josue-T 2019-11-09 18:08:59 +01:00 committed by GitHub
parent a844891d4b
commit 3a7519b66b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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