]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Allow onnode -P to respect ONNODE_SSH
authorMartin Schwenke <martin@meltin.net>
Wed, 3 Jun 2020 23:58:41 +0000 (09:58 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 16 Jul 2020 05:28:42 +0000 (05:28 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode

index 95e67d2c0aab65149888949f933d4984f5a06888..a42ff39357430acc8ddc2a6a2377d3a5bb31599d 100755 (executable)
@@ -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"