Compare commits
2 Commits
7f2a5238c6
...
f91f63ddde
Author | SHA1 | Date | |
---|---|---|---|
f91f63ddde | |||
500d9705bf |
@ -1,6 +1,6 @@
|
|||||||
export AWS_PROFILE=default
|
export AWS_PROFILE=default
|
||||||
DOMAIN="pfy.ch"
|
DOMAIN="pfy.ch"
|
||||||
declare -a SUB_DOMAINS=("home" "git" "zip" "ente" "mastodon")
|
declare -a SUB_DOMAINS=("home" "git" "zip" "ente" "mastodon" "chat")
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
CURRENT_IP=`dig @resolver4.opendns.com myip.opendns.com +short`
|
CURRENT_IP=`dig @resolver4.opendns.com myip.opendns.com +short`
|
||||||
|
@ -9,6 +9,7 @@ SEED_COUNT=$(curl --request GET \
|
|||||||
--silent \
|
--silent \
|
||||||
--url "$API_URL" \
|
--url "$API_URL" \
|
||||||
--header "X-API-Key: $API_KEY" \
|
--header "X-API-Key: $API_KEY" \
|
||||||
|
--header "Cache-Control: no-cache" \
|
||||||
| jq ".response.community.seeding")
|
| jq ".response.community.seeding")
|
||||||
|
|
||||||
if [ "$SEED_COUNT" = "null" ]; then
|
if [ "$SEED_COUNT" = "null" ]; then
|
||||||
@ -19,6 +20,8 @@ if [ "$SEED_COUNT" = "null" ]; then
|
|||||||
-c "torrent" \
|
-c "torrent" \
|
||||||
-m "Seeding has paused!"
|
-m "Seeding has paused!"
|
||||||
|
|
||||||
|
/usr/local/bin/docker restart $(/usr/local/bin/docker ps | grep deluge | cut -d' ' -f1)
|
||||||
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
SAVED_TIME=$(cat /tmp/seed-timestamp.txt)
|
SAVED_TIME=$(cat /tmp/seed-timestamp.txt)
|
||||||
@ -32,5 +35,11 @@ if [ "$SEED_COUNT" = "null" ]; then
|
|||||||
-m "Seeding is still paused!"
|
-m "Seeding is still paused!"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if [ -f /tmp/seed-timestamp.txt ]; then
|
||||||
|
/Users/noahheague/.config/scripts/util/webhook.sh \
|
||||||
|
-c "torrent" \
|
||||||
|
-m "Seeding has been fixed!"
|
||||||
|
|
||||||
rm /tmp/seed-timestamp.txt 2> /dev/null || true
|
rm /tmp/seed-timestamp.txt 2> /dev/null || true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user