mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
\ all the /s!
This commit is contained in:
parent
bd0db56ba0
commit
cde003bc98
1 changed files with 5 additions and 5 deletions
|
@ -550,21 +550,21 @@ version_check_dnsmasq() {
|
||||||
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}
|
||||||
sed -i '/^address=/@HOSTNAME@/@IPv4@/d' ${dnsmasq_pihole_01_location}
|
sed -i '/^address=\/@HOSTNAME@\/@IPv4@/d' ${dnsmasq_pihole_01_location}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${IPv6_address}" != "" ]]; then
|
if [[ "${IPv6_address}" != "" ]]; then
|
||||||
sed -i "s/@IPv6@/$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}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${hostname}" != "" ]]; then
|
if [[ "${hostname}" != "" ]]; then
|
||||||
sed -i "s/@HOSTNAME@/$hostname/" ${dnsmasq_pihole_01_location}
|
sed -i "s/@HOSTNAME@/$hostname/" ${dnsmasq_pihole_01_location}
|
||||||
else
|
else
|
||||||
sed -i '/^address=/@HOSTNAME@*/d' ${dnsmasq_pihole_01_location}
|
sed -i '/^address=\/@HOSTNAME@*/d' ${dnsmasq_pihole_01_location}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i 's/^#conf-dir=\/etc\/dnsmasq.d$/conf-dir=\/etc\/dnsmasq.d/' ${dnsmasq_conf}
|
sed -i 's/^#conf-dir=\/etc\/dnsmasq.d$/conf-dir=\/etc\/dnsmasq.d/' ${dnsmasq_conf}
|
||||||
|
|
Loading…
Reference in a new issue