tbrehm
2010-09-16 2a3cab868b81cdaca3d30e88f0550a96f298c53b
server/plugins-available/bind_plugin.inc.php
@@ -109,7 +109,8 @@
         $filename = escapeshellcmd($dns_config['bind_zonefiles_dir'].'/pri.'.substr($zone['origin'],0,-1));
         $app->log("Writing BIND domain file: ".$filename,LOGLEVEL_DEBUG);
         file_put_contents($filename,$tpl->grab());
         exec('chown '.escapeshellcmd($dns_config['bind_user']).':'.escapeshellcmd($dns_config['bind_group']).' '.$filename);
         chown($filename, escapeshellcmd($dns_config['bind_user']));
         chgrp($filename, escapeshellcmd($dns_config['bind_group']));
         unset($tpl);
         unset($records);
         unset($records_out);