Add 'local' domain if not set in setupVers.conf

This commit is contained in:
DL6ER 2017-01-02 11:08:54 +01:00
parent 677694b01a
commit dbd8aee4ee
No known key found for this signature in database
GPG key ID: BB8EC0BC77973A30

View file

@ -189,10 +189,15 @@ ProcessDHCPSettings() {
interface="eth0"
fi
if [[ "${PIHOLE_DOMAIN}" == "0" ]]; then
PIHOLE_DOMAIN="local"
change_setting "PIHOLE_DOMAIN" "${PIHOLE_DOMAIN}"
fi
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
leasetime="infinite"
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
leasetime="24"
leasetime="24h"
change_setting "DHCP_LEASETIME" "${leasetime}"
else
leasetime="${DHCP_LEASETIME}h"