diff --git a/.config/scripts/cron/dns.sh b/.config/scripts/cron/dns.sh index a301aac..c26b1da 100755 --- a/.config/scripts/cron/dns.sh +++ b/.config/scripts/cron/dns.sh @@ -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` diff --git a/.config/scripts/cron/seed-status.sh b/.config/scripts/cron/seed-status.sh index 8a805cb..e4793b3 100755 --- a/.config/scripts/cron/seed-status.sh +++ b/.config/scripts/cron/seed-status.sh @@ -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 - rm /tmp/seed-timestamp.txt 2> /dev/null || true + 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