Skip to content

Commit

Permalink
unbound: fixup permission on copy; closes #8133
Browse files Browse the repository at this point in the history
(cherry picked from commit 14bdcc9)
  • Loading branch information
fichtner committed Jan 17, 2025
1 parent 2ab9d0a commit 244c119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/etc/inc/plugins.inc.d/unbound.inc
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ EOD;
/* Unbound load tripping over this file is very strange so make it a very safe rewrite */
$root_hints_tmp = tempnam('/var/unbound', 'root.hints.');
copy('/usr/local/opnsense/data/unbound/root.min.hints', $root_hints_tmp);
chmod($root_hints_tmp, 0644);
rename($root_hints_tmp, '/var/unbound/root.hints');

configd_run('template reload OPNsense/Unbound/*');
Expand Down

0 comments on commit 244c119

Please sign in to comment.