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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user