Commit 136bf48b authored by Franco Fichtner's avatar Franco Fichtner

unbound: fix write on var /MFS

parent d28c004a
......@@ -88,9 +88,13 @@ function unbound_optimization() {
}
function unbound_generate_config() {
function unbound_generate_config()
{
global $config, $g;
/* bootstrap unbound root (needed for /var MFS */
@mkdir($g['unbound_chroot_path']);
// Setup optimization
$optimization = unbound_optimization();
......@@ -642,9 +646,10 @@ function unbound_acls_config() {
}
}
}
// Write out Access list
@mkdir($g['unbound_chroot_path']);
file_put_contents("{$g['unbound_chroot_path']}/access_lists.conf", $aclcfg);
}
// Generate hosts and reload services
......@@ -656,4 +661,3 @@ function unbound_hosts_generate() {
unbound_control("reload");
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment