mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
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:
parent
9ed494afd7
commit
b86e526963
@ -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 \
|
||||
|
17
run-pihole/upd_pihole.sh
Executable file
17
run-pihole/upd_pihole.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user