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:
parent
de635c2668
commit
de0f92442a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user