Pi-hole auto update

Hi All newbie here

I've reinstalled Pi-hole not for the first time, so I am on version v5.8.1

My Q is

I am running it on RPI Raspian, is there a way to auto update pi-hole by some sort of script.

I'm a beginner so not to familiar with command line stuff, so any solution to this Q needs to be easy & simple to do,

TIA

1 Like

I would advise against this,

but you could use a cronjob to run "pihole -up"
in ssh
run

sudo crontab -e

select your editor (I would suggest Nano)
add a line like

0 2 * * * "sudo pihole -up"

and pihole will update every day at 2 am.

I might made some typos as I don't use this myself.

I would not suggest to do this, because at one morning you will have urgent business and then find that the update has failed.

1 Like

This is technically possible, but we do not recommend auto-updating Pi-hole. Some updates are breaking, and if you wake up in the morning with an update that doesn't meet your needs (and no backup) you will have a problem.

The dashboard will notify you when an update is available. Read the release notes, then if you want to update do so manually.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.