strict/warn

This commit is contained in:
Joe Cooper
2016-06-03 01:30:57 -07:00
parent b0e9415d01
commit a4c8e4a7bb

View File

@@ -1,17 +1,20 @@
#!/usr/local/bin/perl
# Sign a master zone
use strict;
use warnings;
our (%access, %text, %in);
require './bind8-lib.pl';
&error_setup($text{'sign_err'});
&ReadParse();
$zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});
$dom = $zone->{'name'};
my $zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});
my $dom = $zone->{'name'};
&can_edit_zone($zone) ||
&error($text{'master_ecannot'});
# Do the signing
&lock_file(&make_chroot(&absolute_path($zone->{'file'})));
$err = &sign_dnssec_zone($zone, 1);
my $err = &sign_dnssec_zone($zone, 1);
&error($err) if ($err);
&unlock_file(&make_chroot(&absolute_path($zone->{'file'})));
$err = &restart_zone($zone->{'name'}, $zone->{'view'});