forked from ungleich-public/cdist
Export target_host so remote_copy script has access to it
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
cbfcd01d4f
commit
c59b2839cd
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ if [ -f "$__object/parameter/source" ]; then
|
||||||
remote_cksum="$(cat "$__object/explorer/cksum")"
|
remote_cksum="$(cat "$__object/explorer/cksum")"
|
||||||
|
|
||||||
if [ "$local_cksum" != "$remote_cksum" ]; then
|
if [ "$local_cksum" != "$remote_cksum" ]; then
|
||||||
|
# Export target_host so remote_copy script has access to it
|
||||||
|
echo "export __target_host=\"$__target_host\""
|
||||||
echo "$__remote_copy" "$source" "${__target_host}:${destination}"
|
echo "$__remote_copy" "$source" "${__target_host}:${destination}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue