mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fail nicely if there is no zone file https://forum.virtualmin.com/t/trouble-with-server-creation-and-dnssec-key/114027/10
This commit is contained in:
@@ -3365,6 +3365,7 @@ if (!$single) {
|
||||
|
||||
# Add the new DNSKEY record(s) to the zone
|
||||
my $chrootfn = &get_zone_file($z);
|
||||
$chrootfn || return "Could not work out records file!";
|
||||
my @recs = &read_zone_file($chrootfn, $dom);
|
||||
for(my $i=$#recs; $i>=0; $i--) {
|
||||
if ($recs[$i]->{'type'} eq 'DNSKEY') {
|
||||
|
||||
Reference in New Issue
Block a user