summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2013-06-01 04:22:00 (GMT)
committer tg(x) <*@tg-x.net>2013-06-05 15:58:41 (GMT)
commit54ff1c9aafff44c0c5e024c54a541924131e448d (patch)
treed2bd2b26a7e499c12869e31f2f999eac1c03fdaa
parent4ab688d2a9447016f302c2c442815ec2e4e60b26 (diff)
support signed zones
-rwxr-xr-xbin/gitzone3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/gitzone b/bin/gitzone
index fee9559..d0ec3c1 100755
--- a/bin/gitzone
+++ b/bin/gitzone
@@ -188,8 +188,10 @@ sub process_file {
}
sub check_zones {
+ print ">> check_zones: ,",%files,"\n" if $verbosity >= 3;
for my $file (keys %files) {
my ($zone, $dir) = fileparse $file;
+ $zone =~ s/\.signed$//;
$dir = substr $dir, 0, -1;
# skip files with errors and those that are not in the config
next unless $files{$file} > 0 && exists $repos->{$repo}->{$dir}->{$zone};
@@ -236,6 +238,7 @@ sub install_zones {
for my $file (@zones) {
my ($zone, $dir) = fileparse $file;
+ $zone =~ s/\.signed$//;
$dir = substr $dir, 0, -1;
my $view = $repos->{$repo}->{$dir}->{$zone};
print "$_/$zone: ", `$rndc reload '$zone' $class $_` for @$view;