Compare commits

..

2 Commits

Author SHA1 Message Date
f91f63ddde Update seed script & remove echo 2024-09-09 14:32:26 +10:00
500d9705bf Update cron scripts 2024-09-09 14:29:41 +10:00
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
export AWS_PROFILE=default
DOMAIN="pfy.ch"
declare -a SUB_DOMAINS=("home" "git" "zip" "ente" "mastodon")
declare -a SUB_DOMAINS=("home" "git" "zip" "ente" "mastodon" "chat")
# Scripts
CURRENT_IP=`dig @resolver4.opendns.com myip.opendns.com +short`

View File

@ -9,6 +9,7 @@ SEED_COUNT=$(curl --request GET \
--silent \
--url "$API_URL" \
--header "X-API-Key: $API_KEY" \
--header "Cache-Control: no-cache" \
| jq ".response.community.seeding")
if [ "$SEED_COUNT" = "null" ]; then
@ -19,6 +20,8 @@ if [ "$SEED_COUNT" = "null" ]; then
-c "torrent" \
-m "Seeding has paused!"
/usr/local/bin/docker restart $(/usr/local/bin/docker ps | grep deluge | cut -d' ' -f1)
fi;
SAVED_TIME=$(cat /tmp/seed-timestamp.txt)
@ -32,5 +35,11 @@ if [ "$SEED_COUNT" = "null" ]; then
-m "Seeding is still paused!"
fi
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
fi
fi