Skip to content
Snippets Groups Projects
Commit fd4cfde2 authored by dcy's avatar dcy
Browse files

Secondary DNS - Fedora installation/update routine update

parent a59731a3
No related branches found
No related tags found
No related merge requests found
...@@ -481,6 +481,21 @@ class installer_dist extends installer_base { ...@@ -481,6 +481,21 @@ class installer_dist extends installer_base {
// add the include line at the end of named.conf. // add the include line at the end of named.conf.
replaceLine('/etc/named.conf','include "/etc/named.conf.local";','include "/etc/named.conf.local";',0,1); replaceLine('/etc/named.conf','include "/etc/named.conf.local";','include "/etc/named.conf.local";',0,1);
//* Check if the zonefile directory has a slash at the end
$content=$conf['bind']['bind_zonefiles_dir'];
if(substr($content,-1,1) != '/') {
$content .= '/';
}
//* Create the slave subdirectory
$content .= 'slave';
$content_mkdir = 'mkdir -p '.$content;
exec($content_mkdir);
//* Chown the slave subdirectory to $conf['bind']['bind_user']
exec('chown '.$conf['bind']['bind_user'].':'.$conf['bind']['bind_group'].' '.$content);
exec('chmod 770 '.$content);
} }
...@@ -959,4 +974,4 @@ class installer_dist extends installer_base { ...@@ -959,4 +974,4 @@ class installer_dist extends installer_base {
} }
?> ?>
\ No newline at end of file
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