From 350a3c23fbcaecdb1ca05b8bc150f513d48da2e4 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 12 Jul 2023 11:11:58 +0000 Subject: [PATCH] v1.2 make configurable --- sonarr/AutoConfig.service | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sonarr/AutoConfig.service b/sonarr/AutoConfig.service index 5c95ce4..86ec392 100644 --- a/sonarr/AutoConfig.service +++ b/sonarr/AutoConfig.service @@ -1,11 +1,21 @@ #!/usr/bin/env bash -scriptVersion="1.1" +scriptVersion="1.2" +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 enableYoutubeSeriesDownloader 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