lidarr-dl/lidarr/ARLChecker

24 lines
625 B
Text
Raw Normal View History

#!/usr/bin/with-contenv bash
### Default values
scriptVersion="1.1"
scriptName="ARLChecker"
2024-02-11 21:28:15 +01:00
sleepInterval='24h'
2024-02-08 04:59:59 +01:00
### Import Settings
source /config/extended.conf
echo Starting ARL Token Check...
2024-02-11 21:27:51 +01:00
# run py script
python /custom-services.d/python/ARLChecker.py -c
# If variable doesn't exist, or not set by user in extended.conf, fallback to 24h
# See issue #189
2024-02-11 21:27:51 +01:00
if [[ -v arlUpdateInterval ]] && [ "$arlUpdateInterval" != "" ]
then
echo 'Found Interval in extended.conf'
sleepInterval="$arlUpdateInterval"
else
2024-02-11 21:27:51 +01:00
echo 'Interval Fallback'
fi
echo ARL Token Check Complete. Sleeping for ${sleepInterval}.
sleep ${sleepInterval}