Add Pihole upgrade script (#190)

* Add a script to update your pihole container

* Add instructions for upgrading your pihole container

Co-authored-by: Jon Stroud <jon.stroud@keysight.com>
Former-commit-id: dbf8c79270
This commit is contained in:
jgstroud 2021-07-03 00:33:55 -05:00 committed by GitHub
parent 9ed494afd7
commit b86e526963
2 changed files with 23 additions and 1 deletions

View File

@ -75,6 +75,11 @@
1. Update your DNS Servers to 10.0.5.3 (or your custom ip) for each of your Networks (UDM GUI | Networks | Advanced | DHCP Name Server)
1. Access the pihole like you would normally, e.g. http://10.0.5.3 if using examples above
## Upgrading your PiHole container
1. Edit upd_pihole.sh script to use the same `podman run` command you used at installation.
2. Copy the upd_pihole.sh script to /mnt/data/scripts
3. Anytime you want to update your pihole installation, simply run `/mnt/data/scripts/upd_pihole.sh`
## PiHole with CloudFlareD Command
```sh
podman run -d --network dns --restart always \
@ -92,4 +97,4 @@
-e PIHOLE_DNS_="127.0.0.1#5053" \
-e IPv6="False" \
boostchicken/pihole:latest
```
```

17
run-pihole/upd_pihole.sh Executable file
View File

@ -0,0 +1,17 @@
podman pull pihole/pihole:latest
podman stop pihole
podman rm pihole
podman run -d --network dns --restart always \
--name pihole \
-e TZ="America/Chicago" \
-v "/mnt/data/etc-pihole/:/etc/pihole/" \
-v "/mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
--dns=127.0.0.1 \
--dns=1.1.1.1 \
--dns=1.0.0.1 \
--hostname pi.hole \
-e VIRTUAL_HOST="pi.hole" \
-e PROXY_LOCATION="pi.hole" \
-e ServerIP="10.0.5.3" \
-e IPv6="False" \
pihole/pihole:latest