Merge pull request #65 from YunoHost/fix_push_package

Use rsync to push package and delete old files
This commit is contained in:
Maniack Crudelis 2019-12-07 17:52:46 +01:00 committed by GitHub
commit d4da87e183
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