mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set correct ownership.
|
||||||
|
chown nobody:nobody /var/ipfire/dns/settings
|
||||||
|
|
||||||
# Convert old unbound settings file
|
# Convert old unbound settings file
|
||||||
if [ -e "/etc/sysconfig/unbound" ]; then
|
if [ -e "/etc/sysconfig/unbound" ]; then
|
||||||
local USE_FORWARDERS
|
local USE_FORWARDERS
|
||||||
@@ -81,6 +84,9 @@ main() {
|
|||||||
|
|
||||||
rm -f "/etc/sysconfig/unbound"
|
rm -f "/etc/sysconfig/unbound"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set correct ownership.
|
||||||
|
chown nobody:nobody /var/ipfire/dns/servers
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@" || exit $?
|
main "$@" || exit $?
|
||||||
|
|||||||
Reference in New Issue
Block a user