3
0

bind9 => correction de rndc qui se lançait via sudo

This commit is contained in:
karchnu 2015-11-20 20:13:59 +01:00
parent 167133ebcd
commit 0dc7cdea82

View File

@ -10,8 +10,10 @@ sub reload {
my ($self, $domain) = @_;
my $cmd = "rndc reload $domain";
say "CMD: $cmd";
qx/$cmd/;
$cmd = "rndc notify $domain";
say "CMD: $cmd";
qx/$cmd/;
#my $cmd = "rndc reload $domain ";
@ -75,13 +77,14 @@ sub reconfig {
sub delzone {
my ($self, $domain) = @_;
my $cmd = "sudo rndc delzone $domain ";
my $cmd = "rndc delzone $domain ";
my $user = get_user_from_cfg($$self{mycfg});
my $host = get_host_from_cfg($$self{mycfg});
my $port = get_port_from_cfg($$self{mycfg});
remotecmd $user, $host, $port, $cmd;
#remotecmd $user, $host, $port, $cmd;
qx/$cmd/;
my $file = get_zonedir_from_cfg($$self{mycfg});
$file .= "/$domain";