Created
July 19, 2023 11:24
-
-
Save oscar230/72479ed2e657687b7fcab7b3d0bf2e59 to your computer and use it in GitHub Desktop.
Notify on telegram when APT can upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APT_UPGRADE=$(apt list --upgradable 2>/dev/null | cut -d/ -f1 | grep -v Listing) && docker run --rm containrrr/shoutrrr:latest send --url "telegram://TOKEN@telegram?chats=CHAT&preview=No¬ification=No&title=APT" --message "${APT_UPGRADE:0:4000}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs: https://containrrr.dev/shoutrrr/