Skip to content

Instantly share code, notes, and snippets.

@oscar230
Created July 19, 2023 11:24
Show Gist options
  • Save oscar230/72479ed2e657687b7fcab7b3d0bf2e59 to your computer and use it in GitHub Desktop.
Save oscar230/72479ed2e657687b7fcab7b3d0bf2e59 to your computer and use it in GitHub Desktop.
Notify on telegram when APT can upgrade
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&notification=No&title=APT" --message "${APT_UPGRADE:0:4000}"
@oscar230
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment