v1.3 - logging
This commit is contained in:
parent
a14cecd5c5
commit
5a1e5acee3
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
### Default values
|
### Default values
|
||||||
scriptVersion="1.2"
|
scriptVersion="1.3"
|
||||||
scriptName="ARLChecker"
|
scriptName="ARLChecker"
|
||||||
sleepInterval='24h'
|
sleepInterval='24h'
|
||||||
### Import Settings
|
### Import Settings
|
||||||
|
@ -14,7 +14,7 @@ if [ "$dlClientSource" == "tidal" ]; then
|
||||||
sleep infinity
|
sleep infinity
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Starting ARL Token Check...
|
log "Starting ARL Token Check..."
|
||||||
# run py script
|
# run py script
|
||||||
python /custom-services.d/python/ARLChecker.py -c
|
python /custom-services.d/python/ARLChecker.py -c
|
||||||
|
|
||||||
|
@ -22,11 +22,11 @@ python /custom-services.d/python/ARLChecker.py -c
|
||||||
# See issue #189
|
# See issue #189
|
||||||
if [[ -v arlUpdateInterval ]] && [ "$arlUpdateInterval" != "" ]
|
if [[ -v arlUpdateInterval ]] && [ "$arlUpdateInterval" != "" ]
|
||||||
then
|
then
|
||||||
echo 'Found Interval in extended.conf'
|
log "Found Interval in extended.conf"
|
||||||
sleepInterval="$arlUpdateInterval"
|
sleepInterval="$arlUpdateInterval"
|
||||||
else
|
else
|
||||||
echo 'Interval Fallback'
|
log "Interval Fallback"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ARL Token Check Complete. Sleeping for ${sleepInterval}.
|
log "ARL Token Check Complete. Sleeping for ${sleepInterval}."
|
||||||
sleep ${sleepInterval}
|
sleep ${sleepInterval}
|
||||||
|
|
Loading…
Reference in a new issue