summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-10-02 22:33:42 +0200
committerWarren Baker <warren@decoy.co.za>2011-10-02 22:33:42 +0200
commit8bb22d9c5ea311900b041265f0aeade8125221e7 (patch)
treefff8c541434349aabdb3175c3946e1a12329a3ae /etc/inc/unbound.inc
parent2ee1cf7b91eeebeb4d303b168668badd95677929 (diff)
downloadpfsense-8bb22d9c5ea311900b041265f0aeade8125221e7.zip
pfsense-8bb22d9c5ea311900b041265f0aeade8125221e7.tar.gz
Add full path to ssl files and silence warning
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index c3bdb18..614d38d 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -154,7 +154,7 @@ function unbound_fetch_root_hints() {
global $g;
$destination_file = "{$g['unbound_chroot_path']}/etc/root.hints";
- if (filesize($destination_file) == 0 ) {
+ if (@filesize($destination_file) == 0 ) {
$fout = fopen($destination_file, "w");
$url = "ftp://ftp.internic.net/domain/named.cache";
@@ -355,10 +355,10 @@ remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 953
-server-key-file: "/etc/unbound_server.key"
-server-cert-file: "/etc/unbound_server.pem"
-control-key-file: "/etc/unbound_control.key"
-control-cert-file: "/etc/unbound_control.pem"
+server-key-file: "{$g['unbound_chroot_path']}/etc/unbound_server.key"
+server-cert-file: "{$g['unbound_chroot_path']}/etc/unbound_server.pem"
+control-key-file: "{$g['unbound_chroot_path']}/etc/unbound_control.key"
+control-cert-file: "{$g['unbound_chroot_path']}/etc/unbound_control.pem"
EOF;
file_put_contents("{$g['unbound_chroot_path']}/etc/remotecontrol.conf", $remotcfg);
OpenPOWER on IntegriCloud