convert-dns-settings: Explicitely enable using ISP name servers

The unbound initscript checks if this parameter is on.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-01-29 11:52:02 +01:00
parent 38f51465c9
commit 8729316513

View File

@@ -58,9 +58,9 @@ main() {
# Empty the old settings file
: > /var/ipfire/dns/settings
# Disable using ISP name servers when we already have some configured
if [ ${i} -gt 3 ]; then
echo "USE_ISP_NAMESERVERS=off" \
# Enable using ISP name servers when no servers are configured
if [ ${i} -eq 3 ]; then
echo "USE_ISP_NAMESERVERS=on" \
>> /var/ipfire/dns/settings
fi
fi