Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samsapti/apt-update-push
Small script to send push notifications to your phone on apt updates
https://github.com/samsapti/apt-update-push
apt apt-get bash debian ubuntu unattended-upgrades
Last synced: about 1 month ago
JSON representation
Small script to send push notifications to your phone on apt updates
- Host: GitHub
- URL: https://github.com/samsapti/apt-update-push
- Owner: samsapti
- License: mit
- Created: 2022-04-01T19:58:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T14:29:58.000Z (about 2 years ago)
- Last Synced: 2023-03-10T16:43:41.059Z (almost 2 years ago)
- Topics: apt, apt-get, bash, debian, ubuntu, unattended-upgrades
- Language: Shell
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://ntfy.sh) 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:
```sh
$ 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:
```sh
# .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`:
```aptconf
APT::Periodic::Unattended-Upgrade "0";
```