From: Martin Schwenke Date: Wed, 3 Jun 2020 23:58:41 +0000 (+1000) Subject: ctdb-tools: Allow onnode -P to respect ONNODE_SSH X-Git-Tag: talloc-2.3.2~1103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f217d60376226d323e9d86ed094a27b7e7fa4b8;p=thirdparty%2Fsamba.git ctdb-tools: Allow onnode -P to respect ONNODE_SSH Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tools/onnode b/ctdb/tools/onnode index 95e67d2c0aa..a42ff393574 100755 --- a/ctdb/tools/onnode +++ b/ctdb/tools/onnode @@ -275,6 +275,9 @@ parse_options "$@" ssh_opts= if $push ; then + if [ -n "$ONNODE_SSH" ] ; then + export RSYNC_RSH="$ONNODE_SSH" + fi ONNODE_SSH=push else $current && command="cd $PWD && $command"