|
|
|
@ -59,12 +59,22 @@ case $uname in |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
# IPv6 fix |
|
|
|
|
case "${__target_host}" in |
|
|
|
|
*:*) |
|
|
|
|
my_target_host="[${__target_host}]" |
|
|
|
|
;; |
|
|
|
|
*) |
|
|
|
|
my_target_host="${__target_host}" |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
if [ -n "${cksum}" ]; then |
|
|
|
|
if [ ! "\${currentSum}" = "${cksum}" ]; then |
|
|
|
|
$__remote_copy "${source}" "$__target_host:${rcvar}.new" |
|
|
|
|
$__remote_copy "${source}" "${my_target_host}:${rcvar}.new" |
|
|
|
|
fi |
|
|
|
|
else # File just doesn't exist yet |
|
|
|
|
$__remote_copy "${source}" "$__target_host:${rcvar}.new" |
|
|
|
|
$__remote_copy "${source}" "${my_target_host}:${rcvar}.new" |
|
|
|
|
fi |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|