After doing some research, I couldn’t find any reason not to automatically update your Raspberry Pi and the services Pi-Hole and Homebridge. That increases security, and you also don’t have to log into the system repeatedly and can effectively disable SSH.
I wrote the following script and have it run once a day via Cron.
Maybe someone else can use this.
echo "####### UPDATE DES SYSTEMS #######"
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
sudo apt-get dist-upgrade -y
sudo apt-get autoclean
echo "####### UPDATE VON PI-HOLE #######"
pihole -up
pihole updateGravity
You’ll need to adapt the Homebridge part to your plugins.
The text was automatically translated from German into English. The German quotations were also translated in sense.