mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Account for variable name changes
This commit is contained in:
parent
e8e2c1278e
commit
04650cbc72
1 changed files with 7 additions and 1 deletions
|
@ -893,10 +893,16 @@ installPihole() {
|
||||||
runGravity
|
runGravity
|
||||||
}
|
}
|
||||||
|
|
||||||
updatePihole() {
|
accountForRefactor() {
|
||||||
|
# At some point in the future this list can be pruned, for now we'll need it to ensure updates don't break.
|
||||||
# Refactoring of install script has changed the name of a couple of variables. Sort them out here.
|
# Refactoring of install script has changed the name of a couple of variables. Sort them out here.
|
||||||
sed -i 's/IPv4addr/IPv4_address/g' ${setupVars}
|
sed -i 's/IPv4addr/IPv4_address/g' ${setupVars}
|
||||||
sed -i 's/piholeIPv6/IPv6_address/g' ${setupVars}
|
sed -i 's/piholeIPv6/IPv6_address/g' ${setupVars}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
updatePihole() {
|
||||||
|
accountForRefactor
|
||||||
# Source ${setupVars} for use in the rest of the functions.
|
# Source ${setupVars} for use in the rest of the functions.
|
||||||
. ${setupVars}
|
. ${setupVars}
|
||||||
# Install base files and web interface
|
# Install base files and web interface
|
||||||
|
|
Loading…
Reference in a new issue