From c59b2839cd2be04b7c7ebb4873a3e3a390ec597a Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 18 Nov 2011 08:56:29 +0100 Subject: [PATCH] Export target_host so remote_copy script has access to it Signed-off-by: Steven Armstrong --- conf/type/__file/gencode-local | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/type/__file/gencode-local b/conf/type/__file/gencode-local index 0c6c249d..ae8625b5 100755 --- a/conf/type/__file/gencode-local +++ b/conf/type/__file/gencode-local @@ -31,6 +31,8 @@ if [ -f "$__object/parameter/source" ]; then remote_cksum="$(cat "$__object/explorer/cksum")" 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}" fi else