Finalized - Fix issue #189
This commit is contained in:
parent
d68088d382
commit
dd14f23fe5
1 changed files with 7 additions and 5 deletions
|
@ -2,20 +2,22 @@
|
||||||
### Default values
|
### Default values
|
||||||
scriptVersion="1.1"
|
scriptVersion="1.1"
|
||||||
scriptName="ARLChecker"
|
scriptName="ARLChecker"
|
||||||
sleepInterval='24h'
|
sleepInterval='10s'
|
||||||
### Import Settings
|
### Import Settings
|
||||||
source /config/extended.conf
|
source /config/extended.conf
|
||||||
|
|
||||||
echo Starting ARL Token Check...
|
echo Starting ARL Token Check...
|
||||||
python /custom-services.d/python/ARLChecker.py -c # run py script
|
# 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
|
# If variable doesn't exist, or not set by user in extended.conf, fallback to 24h
|
||||||
# See issue #189
|
# See issue #189
|
||||||
if [[ -v arlUpdateInterval ]] && [ "$arlUpdateInterval" != "" ];then
|
if [[ -v arlUpdateInterval ]] && [ "$arlUpdateInterval" != "" ]
|
||||||
echo 'conf'
|
then
|
||||||
|
echo 'Found Interval in extended.conf'
|
||||||
sleepInterval="$arlUpdateInterval"
|
sleepInterval="$arlUpdateInterval"
|
||||||
else
|
else
|
||||||
echo 'default'
|
echo 'Interval Fallback'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ARL Token Check Complete. Sleeping for ${sleepInterval}.
|
echo ARL Token Check Complete. Sleeping for ${sleepInterval}.
|
||||||
|
|
Loading…
Reference in a new issue