Skip to content
Snippets Groups Projects
Commit 545a09c0 authored by Till Brehm's avatar Till Brehm
Browse files

Update bind_plugin.inc.php

parent a98c9a33
No related branches found
No related tags found
1 merge request!1755Replace one more occurance of slave_zone_file_prefix, #6520
Pipeline #13495 passed
......@@ -460,7 +460,11 @@ class bind_plugin {
}
//* Ensure that the named slave directory is writable by the named user
$slave_record_dir = $dns_config['bind_zonefiles_dir'].'/'.$dns_config['bind_zonefiles_slaveprefix'];
if(!empty($dns_config['bind_zonefiles_slaveprefix'])) {
$slave_record_dir = dirname($dns_config['bind_zonefiles_dir'].'/'.$dns_config['bind_zonefiles_slaveprefix']);
} else {
$slave_record_dir = $dns_config['bind_zonefiles_dir'];
}
if(!@is_dir($slave_record_dir)) mkdir($slave_record_dir, 0770, true);
chown($slave_record_dir, $dns_config['bind_user']);
chgrp($slave_record_dir, $dns_config['bind_group']);
......
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