remember default __remote_{copy,exec} so we can use it ourself in custom __remote_{copy,exec} scripts

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2017-08-29 22:31:30 +02:00
parent 04c8415060
commit 0114001627
3 changed files with 4 additions and 2 deletions

View file

@ -41,6 +41,6 @@ log "@: $@"
log "code: $code"
# copy files into chroot
$__remote_copy $code
$__default_remote_copy $code
log "-----"

View file

@ -44,6 +44,6 @@ log "@: $@"
log "code: $code"
# Run the code
$__remote_exec $target_host $code
$__default_remote_exec $target_host $code
log "-----"

View file

@ -39,6 +39,8 @@ case "$__cdist_loglevel" in
esac
cat << DONE
export __default_remote_exec="$__remote_exec"
export __default_remote_copy="$__remote_copy"
cdist config \
$cdist_args \
--remote-exec="$remote_exec $chroot" \