Revision 2b6d9c41
Added by Warren Baker almost 14 years ago
etc/inc/unbound.inc | ||
---|---|---|
169 | 169 |
function unbound_keys_setup() { |
170 | 170 |
global $g; |
171 | 171 |
|
172 |
if (!file_exists("{$g['unbound_chroot_path']}/unbound_control.key")) |
|
172 |
if (!file_exists("{$g['unbound_chroot_path']}/unbound_control.key")) {
|
|
173 | 173 |
mwexec("/usr/local/sbin/unbound-control-setup -d {$g['unbound_chroot_path']}/etc"); |
174 |
@chown("{$g['unbound_chroot_path']}/etc/unbound_*", "unbound"); |
|
175 |
@chgrp("{$g['unbound_chroot_path']}/etc/unbound_*", "wheel"); |
|
176 |
} |
|
174 | 177 |
} |
175 | 178 |
|
176 | 179 |
/* Generation of Unbound statistics */ |
Also available in: Unified diff
Ensure unbound is owner of ssl files