mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-08 08:54:39 +02:00
Enable markdown (#172)
This commit is contained in:
parent
f4e51121fe
commit
e4b5aaeb9d
1 changed files with 8 additions and 1 deletions
|
|
@ -11,10 +11,17 @@ trigger_notification() {
|
||||||
# Modify to fit your setup:
|
# Modify to fit your setup:
|
||||||
NtfyUrl="ntfy.sh/YourUniqueTopicName"
|
NtfyUrl="ntfy.sh/YourUniqueTopicName"
|
||||||
|
|
||||||
|
if [[ "$PrintMarkdownURL" == true ]]; then
|
||||||
|
ContentType="Markdown: yes"
|
||||||
|
else
|
||||||
|
ContentType="Markdown: no" #text/plain
|
||||||
|
fi
|
||||||
|
|
||||||
curl -sS -o /dev/null --show-error --fail \
|
curl -sS -o /dev/null --show-error --fail \
|
||||||
-H "Title: $MessageTitle" \
|
-H "Title: $MessageTitle" \
|
||||||
|
-H "$ContentType" \
|
||||||
-d "$MessageBody" \
|
-d "$MessageBody" \
|
||||||
$NtfyUrl
|
"$NtfyUrl"
|
||||||
}
|
}
|
||||||
|
|
||||||
send_notification() {
|
send_notification() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue