samsapti / apt-update-push

Small script to send push notifications to your phone on apt updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apt-update-push

This is a small script to send push notifications to your phone after every unattended upgrade on Debian(-derivative) server systems.

It requires you to have the ntfy app installed on your phone (available from F-Droid as well). On the server side of things, you need three things: curl, needrestart and unattended-upgrades.

To install it, just clone the repository and run the install script:

$ git clone https://github.com/samsapti/apt-update-push.git
$ sudo ./install.sh

It will prompt you to enter your "topic" for ntfy, but there's also the possibility to put it inside a .env (in the same directory as the installer) file like so:

# .env
topic="your-topic-here"

As the script runs unattended-upgrades via a cronjob instead of the usual systemd timer, you need to have the following in your /etc/apt/apt.conf.d/20auto-upgrades:

APT::Periodic::Unattended-Upgrade "0";

About

Small script to send push notifications to your phone on apt updates

License:MIT License


Languages

Language:Shell 100.0%