aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound/unbound.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/unbound/unbound.inc')
-rw-r--r--config/unbound/unbound.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index eb27b577..ec08cba9 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -53,11 +53,11 @@ function unbound_initial_setup() {
$unbound_config = &$config['installedpackages']['unbound']['config'][0];
// Ensure Unbound user exists
- exec("/usr/sbin/pw useradd unbound");
+ mwexec("/usr/sbin/pw useradd unbound", true);
// Setup unbound
// Create and chown dirs
- mwexec("/bin/mkdir -p " . UNBOUND_BASE . "/etc/unbound " . UNBOUND_BASE . "/etc/unbound/dev");
+ mwexec("/bin/mkdir -p " . UNBOUND_BASE . "/etc/unbound/dev");
@chown(UNBOUND_BASE . "/etc/unbound/.", "unbound");
@chown(UNBOUND_BASE . "/etc/unbound/dev.", "unbound");
// Touch needed files
@@ -593,9 +593,9 @@ control-cert-file: "{$unbound_base}/etc/unbound/unbound_control.pem"
EOD;
- cont_mount_rw();
+ conf_mount_rw();
file_put_contents("{$unbound_base}/etc/unbound/unbound.conf", $unbound_conf);
- cont_mount_ro();
+ conf_mount_ro();
}