Update seed script & remove echo
This commit is contained in:
parent
500d9705bf
commit
f91f63ddde
@ -5,9 +5,6 @@ source /Users/noahheague/.config/scripts/util/secret.sh
|
||||
API_KEY=$(getSecret "/server/mac-mini-1/seed-api-key")
|
||||
API_URL=$(getSecret "/server/mac-mini-1/seed-api-url")
|
||||
|
||||
echo $API_URL
|
||||
echo $API_KEY
|
||||
|
||||
SEED_COUNT=$(curl --request GET \
|
||||
--silent \
|
||||
--url "$API_URL" \
|
||||
@ -15,8 +12,6 @@ SEED_COUNT=$(curl --request GET \
|
||||
--header "Cache-Control: no-cache" \
|
||||
| jq ".response.community.seeding")
|
||||
|
||||
echo $SEED_COUNT
|
||||
|
||||
if [ "$SEED_COUNT" = "null" ]; then
|
||||
if [ ! -f /tmp/seed-timestamp.txt ]; then
|
||||
echo $TIME > /tmp/seed-timestamp.txt;
|
||||
@ -40,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
|
||||
|
Loading…
Reference in New Issue
Block a user