Adopt new hierarchy pattern

This commit is contained in:
Colin Hebert
2022-12-28 21:59:34 +01:00
parent e19e325c65
commit 7ce6a968c7
21 changed files with 24 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [ "$(cat /data/gotify_previous_ip || true)" != "$1" ]; then
echo -n "$1" > /data/gotify_previous_ip
curl -s "${GOTIFY_ADDRESS%/}/message" \
-X POST \
-H "X-Gotify-Key: $GOTIFY_TOKEN" \
-F "title=IP Address updated" \
-F "message=IP address detected as $1" \
-F "priority=5"
fi