Update AutoConfig.service

This commit is contained in:
RandomNinjaAtk 2023-07-12 12:46:18 +00:00 committed by GitHub
parent 18bfa871d3
commit 175991d34f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,21 @@
#!/usr/bin/env bash
scriptVersion="1.2"
scriptVersion="1.3"
scriptName="AutoConfig"
#### Import Settings
source /config/extended.conf
log () {
m_time=`date "+%F %T"`
echo $m_time" :: AutoConfig :: $scriptVersion :: "$1
echo $m_time" :: $scriptName :: $scriptVersion :: "$1
}
if [ "$enableAutoConfig" != "true" ]; then
log "Script is not enabled, enable by setting enableAutoConfig to \"true\" by modifying the \"/config/extended.conf\" config file..."
log "Sleeping (infinity)"
sleep infinity
fi
getArrAppInfo () {
# Get Arr App information
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then