diff --git a/bin/executable_update-check.sh b/bin/executable_update-check.sh index fe8c073..6feaecd 100644 --- a/bin/executable_update-check.sh +++ b/bin/executable_update-check.sh @@ -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