From 6b2af36841088a237223892f0e91d50e2c7e140d Mon Sep 17 00:00:00 2001 From: mag37 Date: Mon, 15 Jan 2024 20:47:51 +0100 Subject: [PATCH] Added ntfy.sh template --- notify_ntfy-sh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify_ntfy-sh.sh b/notify_ntfy-sh.sh index 43be02e..a388b02 100644 --- a/notify_ntfy-sh.sh +++ b/notify_ntfy-sh.sh @@ -9,7 +9,7 @@ Updates=("$@") UpdToString=$( printf "%s\n" "${Updates[@]}" ) FromHost=$(hostname) -printf "\nSending Apprise notification\n" +printf "\nSending ntfy.sh notification\n" MessageTitle="$FromHost - updates available." # Setting the MessageBody variable here. @@ -23,7 +23,7 @@ __EOF # Modify to fit your setup: NtfyUrl="ntfy.sh/YourUniqueTopicName" -curl \ +curl -sS -o /dev/null --show-error --fail \ -H "Title: $MessageTitle" \ -d "$MessageBody" \ $NtfyUrl