Merge branch 'rsync-ssh-multiplex' into 'master'

__rsync: Use $__remote_exec and thus the ssh multiplexing

See merge request ungleich-public/cdist!1001
This commit is contained in:
poljakowski 2021-07-08 08:05:52 +02:00
commit b8f601ee15

View file

@ -34,6 +34,8 @@ if [ -f "$__object/parameter/rsync-opts" ]; then
done < "$__object/parameter/rsync-opts"
fi
# shellcheck disable=SC2086
echo rsync -a \
--no-owner --no-group \
-e \"${__remote_exec}\" \
-q "$@" "${source}/" "${remote_user}@${__target_host}:${destination}"