Added ntfy.sh template

This commit is contained in:
mag37 2024-01-15 20:47:51 +01:00
parent bad7bfdf86
commit 6b2af36841

View File

@ -9,7 +9,7 @@ Updates=("$@")
UpdToString=$( printf "%s\n" "${Updates[@]}" ) UpdToString=$( printf "%s\n" "${Updates[@]}" )
FromHost=$(hostname) FromHost=$(hostname)
printf "\nSending Apprise notification\n" printf "\nSending ntfy.sh notification\n"
MessageTitle="$FromHost - updates available." MessageTitle="$FromHost - updates available."
# Setting the MessageBody variable here. # Setting the MessageBody variable here.
@ -23,7 +23,7 @@ __EOF
# Modify to fit your setup: # Modify to fit your setup:
NtfyUrl="ntfy.sh/YourUniqueTopicName" NtfyUrl="ntfy.sh/YourUniqueTopicName"
curl \ curl -sS -o /dev/null --show-error --fail \
-H "Title: $MessageTitle" \ -H "Title: $MessageTitle" \
-d "$MessageBody" \ -d "$MessageBody" \
$NtfyUrl $NtfyUrl