mirror of https://github.com/Nezreka/SoulSync.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
442 B
13 lines
442 B
#!/bin/bash
|
|
# Send a notification via ntfy.sh (self-hosted or public)
|
|
# Configure: set NTFY_URL and NTFY_TOPIC environment variables
|
|
# Example: NTFY_URL=https://ntfy.sh NTFY_TOPIC=soulsync
|
|
|
|
NTFY_URL="${NTFY_URL:-https://ntfy.sh}"
|
|
NTFY_TOPIC="${NTFY_TOPIC:-soulsync}"
|
|
|
|
curl -s -d "SoulSync automation '${SOULSYNC_AUTOMATION}' completed" \
|
|
"${NTFY_URL}/${NTFY_TOPIC}" > /dev/null 2>&1
|
|
|
|
echo "Notification sent to ${NTFY_URL}/${NTFY_TOPIC}"
|