From: Stefan Schantl Date: Fri, 10 Jan 2020 08:29:47 +0000 (+0100) Subject: convert-dns-settings: Set correct ownership after convert is done. X-Git-Tag: v2.25-core141~70^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c73baee1f05ed75e66e5f2b894241cc38acb1072;p=ipfire-2.x.git convert-dns-settings: Set correct ownership after convert is done. Otherwise it may happen, that the created config files have wrong permissions and the WUI will break. Signed-off-by: Stefan Schantl --- diff --git a/src/scripts/convert-dns-settings b/src/scripts/convert-dns-settings old mode 100644 new mode 100755 index bacee66f68..de12b30e35 --- a/src/scripts/convert-dns-settings +++ b/src/scripts/convert-dns-settings @@ -53,6 +53,9 @@ main() { fi fi + # Set correct ownership. + chown nobody:nobody /var/ipfire/dns/settings + # Convert old unbound settings file if [ -e "/etc/sysconfig/unbound" ]; then local USE_FORWARDERS @@ -81,6 +84,9 @@ main() { rm -f "/etc/sysconfig/unbound" fi + + # Set correct ownership. + chown nobody:nobody /var/ipfire/dns/servers } main "$@" || exit $?