gitzone

git-based zone management tool for static and dynamic domains
git clone https://git.parazyd.org/gitzone
Log | Files | Refs

commit 54ff1c9aafff44c0c5e024c54a541924131e448d
parent 4ab688d2a9447016f302c2c442815ec2e4e60b26
Author: tg(x) <*@tg-x.net>
Date:   Sat,  1 Jun 2013 06:22:00 +0200

support signed zones

Diffstat:
Mbin/gitzone | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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;