(ntfy): Swith to ntfy in update check script.

This commit is contained in:
heavy 2025-11-23 09:41:28 +00:00
parent 5e9040da04
commit 70eddcda69

View File

@ -5,7 +5,6 @@
# MUST RUN AS ROOT (best in a cronjob)
#
token="https://heavy.uber.space/gotify/message?token=Apw3EgT7BpQZ0rs"
MYTEMPDIR="$(mktemp -d)"
MYAPT="$MYTEMPDIR/apt-update.txt"
trap 'rm -rf -- "$MYDIR"' EXIT
@ -20,6 +19,6 @@ else
LST="$(aptitude -F %p search '~U')"
LST="$(echo $LST | tr '\n' ' ')"
text="$SUMMARY ($(uname -n)):\n $LST"
curl -H "Content-Type: application/json" -X POST $token -d "{\"title\":\"Debian Update Checker\",\"message\":\"$text\"}"
curl -H "Tags: $(hostname)" -H "Title: Debian Update Check" -H "Icon: https://www.debian.org/logos/openlogo-nd-75.png" -d "Debian update check: $text" https://ntfy.coolify.gaiselmann.de/hetzner
fi