mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Additional check to fix any existing cases of "24h" in setupVars.conf automatically.
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
4fb66e632f
commit
0a9965292c
1 changed files with 5 additions and 0 deletions
|
@ -263,6 +263,11 @@ ProcessDHCPSettings() {
|
||||||
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
elif [[ "${DHCP_LEASETIME}" == "" ]]; then
|
||||||
leasetime="24"
|
leasetime="24"
|
||||||
change_setting "DHCP_LEASETIME" "${leasetime}"
|
change_setting "DHCP_LEASETIME" "${leasetime}"
|
||||||
|
elif [[ "${DHCP_LEASETIME}" == "24h" ]]; then
|
||||||
|
#Installation is affected by known bug, introduced in a previous version.
|
||||||
|
#This will automatically clean up setupVars.conf and remove the unnecessary "h"
|
||||||
|
leasetime="24"
|
||||||
|
change_setting "DHCP_LEASETIME" "${leasetime}"
|
||||||
else
|
else
|
||||||
leasetime="${DHCP_LEASETIME}h"
|
leasetime="${DHCP_LEASETIME}h"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue