diff --git a/radarr/AutoConfig.service b/radarr/AutoConfig.service index 826858e..cae3fe3 100644 --- a/radarr/AutoConfig.service +++ b/radarr/AutoConfig.service @@ -1,5 +1,10 @@ #!/usr/bin/env bash -scriptVersion="1.1" +scriptVersion="1.2" + +log () { + m_time=`date "+%F %T"` + echo $m_time" :: AutoConfig :: $scriptVersion :: "$1 +} getArrAppInfo () { # Get Arr App information @@ -51,11 +56,6 @@ if [ ! -f "/config/logs/AutoConfig.txt" ]; then fi exec &> >(tee -a "/config/logs/AutoConfig.txt") -log () { - m_time=`date "+%F %T"` - echo $m_time" :: AutoConfig :: $scriptVersion :: "$1 -} - if [ -f /config/extended/naming.json ]; then log "Using custom Naming (/config/extended/naming.json)..." namingJson=$(cat /config/extended/naming.json)