From 175991d34f4789122cf8e2fd41b28ff3a10b8640 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 12 Jul 2023 12:46:18 +0000 Subject: [PATCH] Update AutoConfig.service --- radarr/AutoConfig.service | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/radarr/AutoConfig.service b/radarr/AutoConfig.service index cae3fe3..fe1b5c8 100644 --- a/radarr/AutoConfig.service +++ b/radarr/AutoConfig.service @@ -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