pbs: warn about missing, but config master key
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
2bc4cfb866
commit
de635c2668
@ -210,7 +210,11 @@ sub pbs_open_master_pubkey {
|
||||
|
||||
my $keyfd;
|
||||
if (!open($keyfd, '<', $master_pubkey_file)) {
|
||||
return undef if $! == ENOENT;
|
||||
if ($! == ENOENT) {
|
||||
warn "master public key configured but no key file found!\n"
|
||||
if $scfg->{'master-pubkey'};
|
||||
return undef;
|
||||
}
|
||||
die "failed to open master public key: $master_pubkey_file: $!\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user