From de0f92442a35a10cc97079b61c83ce55e762ad58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 16 Aug 2022 13:55:43 +0200 Subject: [PATCH] pbs: die if master key is missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit while the resulting backups are encrypted, they would not be restorable using the master key (only) if the original PVE system is lost. Signed-off-by: Fabian Grünbichler --- PVE/Storage/PBSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 21a2a0a..afc6ea4 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -211,7 +211,7 @@ sub pbs_open_master_pubkey { my $keyfd; if (!open($keyfd, '<', $master_pubkey_file)) { if ($! == ENOENT) { - warn "master public key configured but no key file found!\n" + die "master public key configured but no key file found!\n" if $scfg->{'master-pubkey'}; return undef; }