Skip to content

Commit 8cde628

Browse files
author
A. Täffner
committed
Zone-Checking improved
Implements a colored background if bind fails to load the zone due to errors Implements a status text if errors occured Implements not removing a zone if errors occur. instead old zone stays loaded
1 parent 05c924e commit 8cde628

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ function soa_update($event_name, $data) {
268268
//* Check the zonefile
269269
if(is_file($filename.'.err')) unlink($filename.'.err');
270270
$out=array();
271+
<<<<<<< HEAD
271272
exec('named-checkzone '.escapeshellarg($zone['origin']).' '.escapeshellarg($filename.'.pending').' 2>&1', $out, $return_status);
273+
=======
274+
exec('/usr/sbin/named-checkzone '.escapeshellarg($zone['origin']).' '.escapeshellarg($filename.'.pending').' 2>&1', $out, $return_status);
275+
>>>>>>> Zone-Checking improved
272276
$statustext='';
273277
foreach ($out as $line) $statustext .= $line."\n";
274278
if($return_status === 0) {
@@ -325,8 +329,8 @@ function soa_update($event_name, $data) {
325329

326330
if(is_file($filename)) unlink($filename);
327331
if(is_file($filename.'.err')) unlink($filename.'.err');
328-
if(is_file($filename.'.signed')) unlink($filename.'.signed');
329332
if(is_file($filename.'.pending')) unlink($filename.'.pending');
333+
if(is_file($filename.'.signed')) unlink($filename.'.signed');
330334
}
331335

332336
//* Restart bind nameserver if update_acl is not empty, otherwise reload it

0 commit comments

Comments
 (0)