From 4720bbad33ddbef9563975e55e528e571c333b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20He=C5=99man?= Date: Wed, 2 Nov 2016 07:59:18 +0100 Subject: [PATCH] use 'which' instead of 'type -p', disable rectify zone for SOA record without NS --- server/plugins-available/powerdns_plugin.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/plugins-available/powerdns_plugin.inc.php b/server/plugins-available/powerdns_plugin.inc.php index 412050d..0c01c35 100644 --- a/server/plugins-available/powerdns_plugin.inc.php +++ b/server/plugins-available/powerdns_plugin.inc.php @@ -152,7 +152,7 @@ class powerdns_plugin { //* tell pdns to rediscover zones in DB $this->zoneRediscover(); //* tell pdns to use 'pdnssec rectify' on the new zone - $this->rectifyZone($data); + //$this->rectifyZone($data); //* tell pdns to send notify to slave $this->notifySlave($data); } @@ -412,7 +412,7 @@ class powerdns_plugin { function find_pdns_control() { $output = array(); $retval = ''; - exec("type -p pdns_control", $output, $retval); + exec("which pdns_control", $output, $retval); if ($retval == 0 && is_file($output[0])){ return $output[0]; } else { @@ -423,7 +423,7 @@ class powerdns_plugin { function find_pdns_pdnssec() { $output = array(); $retval = ''; - exec("type -p pdnssec", $output, $retval); + exec("which pdnssec", $output, $retval); if ($retval == 0 && is_file($output[0])){ return $output[0]; } else { -- 2.6.6