public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH cluster] pvecm: fix cluster join over ssh with newer rsync
Date: Fri,  2 Jun 2023 15:20:23 +0200	[thread overview]
Message-ID: <20230602132023.2232815-1-d.csapak@proxmox.com> (raw)

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.csapak@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





             reply	other threads:[~2023-06-02 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 13:20 Dominik Csapak [this message]
2023-06-04 16:57 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230602132023.2232815-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal