Adopt new hierarchy pattern
This commit is contained in:
1
services/ddclient/volumes/data/.gitignore
vendored
Normal file
1
services/ddclient/volumes/data/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!postscript_gotify.sh
|
||||
12
services/ddclient/volumes/data/postscript_gotify.sh
Executable file
12
services/ddclient/volumes/data/postscript_gotify.sh
Executable 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
|
||||
Reference in New Issue
Block a user