LAST UPDATE: May 2023 (untested, since I do not use PiHole anymore)
A simple bash script to force an update directly from pihole's official site without the need of editing paths everytime (When you dont store your Webdata in the /var/www/html) I've only tested this script on my Ubuntu on a Raspberry Pi 4 4GB
webroot="/webroot/pi"
defaultWebroot="/var/www/html"
reboot=true
This script needs root-permissions to work properly. It will ask you for your sudo-password.
- Download or copy it into your '/bin'-Folder and name it "piholeUpdateScript.sh"
- Setup your webroot:
sudo nano /bin/piholeUpdateScript.sh
- Grant privileges
sudo chmod +x piholeUpdateScript.sh
- Run it whenever you like to update your Pihole.