space needed when making gravity.list

Previously, piholeIP was acquired using hostname -I.  Now that the
installer will let you decide what IP to use, the whitespace is not an
issue
This commit is contained in:
Jacob Salmela 2015-11-09 18:35:51 -06:00
parent e222a1d5e9
commit a6a114adbe

View file

@ -143,7 +143,7 @@ function gravity_advanced()
echo "** $numberOf unique domains trapped in the event horizon."
# Format domain list as "192.168.x.x domain.com"
echo "** Formatting domains into a HOSTS file..."
cat $origin/$eventHorizon | awk '{sub(/\r$/,""); print "'"$piholeIP"'" $0}' > $origin/$accretionDisc
cat $origin/$eventHorizon | awk '{sub(/\r$/,""); print "'"$piholeIP"' " $0}' > $origin/$accretionDisc
# Copy the file over as /etc/pihole/gravity.list so dnsmasq can use it
sudo cp $origin/$accretionDisc $adList
kill -HUP $(pidof dnsmasq)