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 <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2020-01-10 09:29:47 +01:00
parent 8fbb12f168
commit c73baee1f0

6
src/scripts/convert-dns-settings Normal file → Executable file
View File

@@ -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 $?