mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
actually fix up logic
This commit is contained in:
parent
95f0b3710d
commit
bd0db56ba0
1 changed files with 2 additions and 2 deletions
|
@ -547,7 +547,7 @@ version_check_dnsmasq() {
|
||||||
|
|
||||||
#Replace IPv4 and IPv6 tokens in 01-pihole.conf for pi.hole resolution.
|
#Replace IPv4 and IPv6 tokens in 01-pihole.conf for pi.hole resolution.
|
||||||
if [[ "${IPv4_address}" != "" ]]; then
|
if [[ "${IPv4_address}" != "" ]]; then
|
||||||
tmp = ${IPv4_address%/*}
|
tmp=${IPv4_address%/*}
|
||||||
sed -i "s/@IPv4@/$tmp/" ${dnsmasq_pihole_01_location}
|
sed -i "s/@IPv4@/$tmp/" ${dnsmasq_pihole_01_location}
|
||||||
else
|
else
|
||||||
sed -i '/^address=/pi.hole/@IPv4@/d' ${dnsmasq_pihole_01_location}
|
sed -i '/^address=/pi.hole/@IPv4@/d' ${dnsmasq_pihole_01_location}
|
||||||
|
@ -555,7 +555,7 @@ version_check_dnsmasq() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${IPv6_address}" != "" ]]; then
|
if [[ "${IPv6_address}" != "" ]]; then
|
||||||
sed -i "s/@IPv4@/$IPv6_address/" ${dnsmasq_pihole_01_location}
|
sed -i "s/@IPv6@/$IPv6_address/" ${dnsmasq_pihole_01_location}
|
||||||
else
|
else
|
||||||
sed -i '/^address=/pi.hole/@IPv6@/d' ${dnsmasq_pihole_01_location}
|
sed -i '/^address=/pi.hole/@IPv6@/d' ${dnsmasq_pihole_01_location}
|
||||||
sed -i '/^address=/@HOSTNAME@/@IPv6@/d' ${dnsmasq_pihole_01_location}
|
sed -i '/^address=/@HOSTNAME@/@IPv6@/d' ${dnsmasq_pihole_01_location}
|
||||||
|
|
Loading…
Reference in a new issue