v1.2 - move source config import to new location

This commit is contained in:
RandomNinjaAtk 2023-07-14 19:41:03 +00:00 committed by GitHub
parent 8ffbc5732b
commit 21549aae81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,16 +1,16 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="1.1" scriptVersion="1.2"
scriptName="QueueCleaner" scriptName="QueueCleaner"
#### Import Settings
source /config/extended.conf
log () { log () {
m_time=`date "+%F %T"` m_time=`date "+%F %T"`
echo $m_time" :: $scriptName :: $scriptVersion :: "$1 echo $m_time" :: $scriptName :: $scriptVersion :: "$1
} }
verifyConfig () { verifyConfig () {
#### Import Settings
source /config/extended.conf
if [ "$enableQueueCleaner" != "true" ]; then if [ "$enableQueueCleaner" != "true" ]; then
log "Script is not enabled, enable by setting enableQueueCleaner to \"true\" by modifying the \"/config/extended.conf\" config file..." log "Script is not enabled, enable by setting enableQueueCleaner to \"true\" by modifying the \"/config/extended.conf\" config file..."
log "Sleeping (infinity)" log "Sleeping (infinity)"