Redoing script and adding notification script.
This commit is contained in:
@@ -12,6 +12,7 @@ fi
|
|||||||
if [[ -n "${APPRISE_API_URL:-}" ]]; then
|
if [[ -n "${APPRISE_API_URL:-}" ]]; then
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"body\":\"$msg\"}" \
|
-F "{\"body\":\"$msg\"}" \
|
||||||
"$APPRISE_API_URL/notify" >/dev/null 2>&1 || true
|
-F "tags=all" \
|
||||||
|
"$APPRISE_API_URL" >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -49,8 +49,9 @@ notify_func() {
|
|||||||
if [[ -n "${APPRISE_API_URL:-}" ]]; then
|
if [[ -n "${APPRISE_API_URL:-}" ]]; then
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"body\":\"$msg\"}" \
|
-F "{\"body\":\"$msg\"}" \
|
||||||
"$APPRISE_API_URL/notify" >/dev/null 2>&1 || true
|
-F "tags=all" \
|
||||||
|
"$APPRISE_API_URL" >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user