This fixes #6 by changing the location of the whitelist.txt file. Instead of storing it in the current users home folder, it should be created in /etc/pihole. The script will also create the directory if it does not exist, but will not add a whitelist.txt by default. You would still need to go back and manually add one. But this directory will be used to store other support files as the script improves. I also added sudo commands to the commands requiring elevation. Finally, changed the comment to reflect a more accurate number of domains getting blocked.
pi-hole
Raspberry Pi Ad Blocker (A black hole for ads, hence Pi-hole)
Description
A black hole for Internet advertisements
ad-blockerblockerclouddashboarddhcpdhcp-serverdnsmasqdns-serverhacktoberfestpi-holeraspberry-pishell
Readme
9.9 MiB
Languages
Shell
77.2%
Python
12.9%
PHP
3.2%
CSS
3%
Roff
2.4%
Other
1.3%