jwarnier
2010-09-05 8e725d2c1057608431d3d1639c948206d5e24869
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);