diff options
author | Warren Baker <warren@decoy.co.za> | 2011-10-01 23:06:13 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-10-01 23:06:13 +0200 |
commit | 2b6d9c41cf08ee6cf9f62064c5bd7c8821d8630e (patch) | |
tree | 618ced872bd3469ba81b2e7196eb59aa68cf1b35 /etc/inc/unbound.inc | |
parent | 0a3d62f7c96db4d70f85bdc897211da04b8741ee (diff) | |
download | pfsense-2b6d9c41cf08ee6cf9f62064c5bd7c8821d8630e.zip pfsense-2b6d9c41cf08ee6cf9f62064c5bd7c8821d8630e.tar.gz |
Ensure unbound is owner of ssl files
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc index 685cb1e..d1a9726 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -169,8 +169,11 @@ EOD; function unbound_keys_setup() { global $g; - if (!file_exists("{$g['unbound_chroot_path']}/unbound_control.key")) + if (!file_exists("{$g['unbound_chroot_path']}/unbound_control.key")) { mwexec("/usr/local/sbin/unbound-control-setup -d {$g['unbound_chroot_path']}/etc"); + @chown("{$g['unbound_chroot_path']}/etc/unbound_*", "unbound"); + @chgrp("{$g['unbound_chroot_path']}/etc/unbound_*", "wheel"); + } } /* Generation of Unbound statistics */ |