Redoing script and adding notification script.

This commit is contained in:
2025-11-24 19:11:46 -05:00
parent 431a035ca7
commit b1eaed9147
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -12,6 +12,7 @@ fi
if [[ -n "${APPRISE_API_URL:-}" ]]; then
curl -s -X POST \
-H "Content-Type: application/json" \
-d "{\"body\":\"$msg\"}" \
"$APPRISE_API_URL/notify" >/dev/null 2>&1 || true
-F "{\"body\":\"$msg\"}" \
-F "tags=all" \
"$APPRISE_API_URL" >/dev/null 2>&1 || true
fi
+3 -2
View File
@@ -49,8 +49,9 @@ notify_func() {
if [[ -n "${APPRISE_API_URL:-}" ]]; then
curl -s -X POST \
-H "Content-Type: application/json" \
-d "{\"body\":\"$msg\"}" \
"$APPRISE_API_URL/notify" >/dev/null 2>&1 || true
-F "{\"body\":\"$msg\"}" \
-F "tags=all" \
"$APPRISE_API_URL" >/dev/null 2>&1 || true
fi
}