5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-02-03 13:47:16 +03:00

pbs: die if master key is missing

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 <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-08-16 13:55:43 +02:00
parent de635c2668
commit de0f92442a

View File

@ -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;
}