From 4775c93a6e08bac9c6b8cd6a3528f99396d31760 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 21 Oct 2011 16:01:39 +0200 Subject: [PATCH] use __remote_copy in __file type Signed-off-by: Steven Armstrong --- conf/type/__file/gencode-local | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/conf/type/__file/gencode-local b/conf/type/__file/gencode-local index 1168919e..0c6c249d 100755 --- a/conf/type/__file/gencode-local +++ b/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