]> git.proxmox.com Git - pve-cluster.git/commitdiff
pvecm: fix cluster join over ssh with newer rsync
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 2 Jun 2023 13:20:23 +0000 (15:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 4 Jun 2023 16:56:14 +0000 (18:56 +0200)
Since rsync 3.2.4, the syntax to give multiple files in one parameter
does not work anymore, so instead add both files explicitly.

this fixes the cluster join over ssh on Bookworm based Proxmox VE,
and Bullseye has rsync 3.2.3 so no change required there.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/CLI/pvecm.pm

index b0b59319dc1381f4959dae181a8ed3a6dc24f448..d816a0caae0195c86c6ef0a66f17e8213dc45795 100755 (executable)
@@ -438,7 +438,7 @@ __PACKAGE__->register_method ({
            eval {
                print "copy corosync auth key\n";
                $cmd = ['rsync', '--rsh=ssh -l root -o BatchMode=yes', '-lpgoq',
-                       "[$host]:$authfile $clusterconf", $tmpdir];
+                       "[$host]:$authfile", "[$host]:$clusterconf", $tmpdir];
 
                system(@$cmd) == 0 || die "can't rsync data from host '$host'\n";