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

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 src/PVE/CLI/pvecm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/CLI/pvecm.pm b/src/PVE/CLI/pvecm.pm
index b0b5931..d816a0c 100755
--- a/src/PVE/CLI/pvecm.pm
+++ b/src/PVE/CLI/pvecm.pm
@@ -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";
 
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to