mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-14 15:28:22 +01:00
Added ntfy.sh template
This commit is contained in:
parent
bad7bfdf86
commit
6b2af36841
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue