diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-26 08:57:30 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-26 08:57:30 -0300 |
commit | fe38ac7b701ab3d9cb8d0043eeac800f2ab076b1 (patch) | |
tree | 8e2c65cc4e7774f2cffdbe22549ac54728869ac7 | |
parent | 8050b40c32ab617af9516beb266ba44b0e5d930d (diff) | |
download | pfsense-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
-rw-r--r-- | config/unbound/unbound.inc | 2 |
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(); } |