Skip to content
Snippets Groups Projects
Commit cb380822 authored by tbrehm's avatar tbrehm
Browse files

No commit message

No commit message
parent fc70a2c6
No related branches found
No related tags found
No related merge requests found
<tmpl_loop name='zones'>
<tmpl_if name='zone'>
zone "<tmpl_var name='zone'>" {
type master;
file "<tmpl_var name='zonefile_path'>";
};
</tmpl_if>
</tmpl_loop>
......@@ -134,7 +134,7 @@ class bind_plugin {
$this->write_named_conf($data,$dns_config);
//* Delete the domain file
$filename = $dns_config['bind_zonefiles_dir'].'/pri.'.$data['old']['origin'];
$filename = $dns_config['bind_zonefiles_dir'].'/pri.'.substr($data['old']['origin'],0,-1);
if(is_file($filename)) unset($filename);
$app->log("Deleting BIND domain file: ".$filename,LOGLEVEL_DEBUG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment