Redoing script and adding notification script.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user