use __remote_copy in __file type

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/feature_files_export
Steven Armstrong 14 years ago
parent 18f08d893c
commit 4775c93a6e
  1. 6
      conf/type/__file/gencode-local

@ -31,11 +31,7 @@ if [ -f "$__object/parameter/source" ]; then
remote_cksum="$(cat "$__object/explorer/cksum")"
if [ "$local_cksum" != "$remote_cksum" ]; then
# FIXME: The username is ugly and hardcoded, replace after 1.0!
# Probably a better aproach is to have the user configured
# ~/.ssh/config to contain the right username
# Probably describe it in cdist-quickstart...
echo scp "$source" "root@${__target_host}:${destination}"
echo "$__remote_copy" "$source" "${__target_host}:${destination}"
fi
else
echo "Source \"$source\" does not exist." >&2

Loading…
Cancel
Save