mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
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:
6
src/scripts/convert-dns-settings
Normal file → Executable file
6
src/scripts/convert-dns-settings
Normal file → Executable 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 $?
|
||||
|
||||
Reference in New Issue
Block a user