From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 92D3DF33C for ; Thu, 15 Dec 2022 09:13:29 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7CA2C4D50 for ; Thu, 15 Dec 2022 09:13:29 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 15 Dec 2022 09:13:28 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id BDA6344079 for ; Thu, 15 Dec 2022 09:13:28 +0100 (CET) From: Fiona Ebner To: pbs-devel@lists.proxmox.com Date: Thu, 15 Dec 2022 09:13:25 +0100 Message-Id: <20221215081325.25720-2-f.ebner@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221215081325.25720-1-f.ebner@proxmox.com> References: <20221215081325.25720-1-f.ebner@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.473 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_EVIL_NUMBERS4 1 Phone Numbers used by scammers SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup 2/2] d/postinst: check if datastore lockfile actually exists X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2022 08:13:29 -0000 On an installation that never had any datastores, dkpg would fail to configure the package. Signed-off-by: Fiona Ebner --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 489cf6ac..0485ca34 100644 --- a/debian/postinst +++ b/debian/postinst @@ -48,7 +48,7 @@ case "$1" in true fi - if dpkg --compare-versions "$2" 'lt' '2.3.1~'; then + if dpkg --compare-versions "$2" 'lt' '2.3.1~' && test -e /etc/proxmox-backup/.datastore.lck; then lock_user="$(stat --format '%U' /etc/proxmox-backup/.datastore.lck)" if [ "${lock_user}" != "backup" ]; then echo "updating /etc/proxmox-backup/.datastore.lck from wrong user '${lock_user}' to 'backup'" -- 2.30.2