aboutsummaryrefslogtreecommitdiffstats
path: root/config/bind/bind.inc
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-14 15:52:50 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-14 15:52:50 -0300
commitacf046ec6392658ae0f4cfd3215e887ae2d58315 (patch)
treed35bde986bc70044f4542d473abac221a6e0d637 /config/bind/bind.inc
parent7ce2a27b33fefac065b3e890df9f304fba881e99 (diff)
downloadpfsense-packages-acf046ec6392658ae0f4cfd3215e887ae2d58315.tar.gz
pfsense-packages-acf046ec6392658ae0f4cfd3215e887ae2d58315.tar.bz2
pfsense-packages-acf046ec6392658ae0f4cfd3215e887ae2d58315.zip
bind - include missing conf_mount_ro/rw for nanobsd
Diffstat (limited to 'config/bind/bind.inc')
-rw-r--r--config/bind/bind.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/bind/bind.inc b/config/bind/bind.inc
index 30828927..67677972 100644
--- a/config/bind/bind.inc
+++ b/config/bind/bind.inc
@@ -73,7 +73,8 @@ function bind_zone_validate($post, $input_errors){
function bind_sync(){
global $config;
-
+ conf_mount_rw();
+
$bind = $config["installedpackages"]["bind"]["config"][0];
$bind_enable = $bind['enable_bind'];
$bind_forwarder = $bind['bind_forwarder'];
@@ -358,6 +359,7 @@ EOD;
mwexec("/usr/local/etc/rc.d/named.sh restart");
else
mwexec("/usr/local/etc/rc.d/named.sh stop");
+ conf_mount_ro();
}
function bind_print_javascript_type_zone(){
@@ -434,13 +436,17 @@ EOD;
}
function create_log_file(){
+ conf_mount_rw();
mwexec("touch ".CHROOT_LOCALBASE."/var/log/named.log");
mwexec("chown bind:bind ".CHROOT_LOCALBASE."/var/log/named.log");
mwexec("chmod 755 ".CHROOT_LOCALBASE."/var/log/named.log");
+ conf_mount_ro();
}
function delete_log_file(){
+ conf_mount_rw();
mwexec("rm ".CHROOT_LOCALBASE."/var/log/named.log");
+ conf_mount_ro();
}
/* Uses XMLRPC to synchronize the changes to a remote node */
function bind_sync_on_changes() {