mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-14 03:19:19 +00:00
Add 'local' domain if not set in setupVers.conf
This commit is contained in:
parent
677694b01a
commit
dbd8aee4ee
1 changed files with 6 additions and 1 deletions
|
@ -189,10 +189,15 @@ ProcessDHCPSettings() {
|
||||||
interface="eth0"
|
interface="eth0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${PIHOLE_DOMAIN}" == "0" ]]; then
|
||||||
|
PIHOLE_DOMAIN="local"
|
||||||
|
change_setting "PIHOLE_DOMAIN" "${PIHOLE_DOMAIN}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
if [[ "${DHCP_LEASETIME}" == "0" ]]; then
|
||||||
leasetime="infinite"
|
leasetime="infinite"
|
||||||
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
||||||
leasetime="24"
|
leasetime="24h"
|
||||||
change_setting "DHCP_LEASETIME" "${leasetime}"
|
change_setting "DHCP_LEASETIME" "${leasetime}"
|
||||||
else
|
else
|
||||||
leasetime="${DHCP_LEASETIME}h"
|
leasetime="${DHCP_LEASETIME}h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue