Commit 6b2b7d02 authored by Ad Schellevis's avatar Ad Schellevis

set permissions on resolv.conf, default should be -rw-r--r--

parent 59454d60
...@@ -148,6 +148,7 @@ function system_resolvconf_generate($dynupdate = false) ...@@ -148,6 +148,7 @@ function system_resolvconf_generate($dynupdate = false)
fwrite($fd, $resolvconf); fwrite($fd, $resolvconf);
fclose($fd); fclose($fd);
chmod("{$g['varetc_path']}/resolv.conf", 0644);
if (!$g['booting']) { if (!$g['booting']) {
/* restart dhcpd (nameservers may have changed) */ /* restart dhcpd (nameservers may have changed) */
......
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