aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-26 08:57:30 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-26 08:57:30 -0300
commitfe38ac7b701ab3d9cb8d0043eeac800f2ab076b1 (patch)
tree8e2c65cc4e7774f2cffdbe22549ac54728869ac7 /config/unbound
parent8050b40c32ab617af9516beb266ba44b0e5d930d (diff)
downloadpfsense-packages-fe38ac7b701ab3d9cb8d0043eeac800f2ab076b1.tar.gz
pfsense-packages-fe38ac7b701ab3d9cb8d0043eeac800f2ab076b1.tar.bz2
pfsense-packages-fe38ac7b701ab3d9cb8d0043eeac800f2ab076b1.zip
Make sure filesystem is read/write when try to save unbound config, it helps ticket #2817
Diffstat (limited to 'config/unbound')
-rw-r--r--config/unbound/unbound.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index febc0777..eb27b577 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -593,7 +593,9 @@ control-cert-file: "{$unbound_base}/etc/unbound/unbound_control.pem"
EOD;
+ cont_mount_rw();
file_put_contents("{$unbound_base}/etc/unbound/unbound.conf", $unbound_conf);
+ cont_mount_ro();
}