From cde003bc98c965c1fba15cde9498a46311df5301 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Thu, 27 Oct 2016 11:13:00 +0100 Subject: [PATCH] \ all the /s! --- automated install/basic-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 0f36a722..6a305106 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -550,21 +550,21 @@ version_check_dnsmasq() { tmp=${IPv4_address%/*} sed -i "s/@IPv4@/$tmp/" ${dnsmasq_pihole_01_location} else - sed -i '/^address=/pi.hole/@IPv4@/d' ${dnsmasq_pihole_01_location} - sed -i '/^address=/@HOSTNAME@/@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} fi if [[ "${IPv6_address}" != "" ]]; then sed -i "s/@IPv6@/$IPv6_address/" ${dnsmasq_pihole_01_location} else - sed -i '/^address=/pi.hole/@IPv6@/d' ${dnsmasq_pihole_01_location} - sed -i '/^address=/@HOSTNAME@/@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} fi if [[ "${hostname}" != "" ]]; then sed -i "s/@HOSTNAME@/$hostname/" ${dnsmasq_pihole_01_location} else - sed -i '/^address=/@HOSTNAME@*/d' ${dnsmasq_pihole_01_location} + sed -i '/^address=\/@HOSTNAME@*/d' ${dnsmasq_pihole_01_location} fi sed -i 's/^#conf-dir=\/etc\/dnsmasq.d$/conf-dir=\/etc\/dnsmasq.d/' ${dnsmasq_conf}