From ac1e4942fce47b681953e26a54d7fd0132bc0e29 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 8 Jul 2023 12:46:56 -0400 Subject: [PATCH] Update AutoConfig.service --- sonarr/AutoConfig.service | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/sonarr/AutoConfig.service b/sonarr/AutoConfig.service index b364844..fa3ba01 100644 --- a/sonarr/AutoConfig.service +++ b/sonarr/AutoConfig.service @@ -56,17 +56,10 @@ log () { echo $m_time" :: AutoConfig :: $scriptVersion :: "$1 } -if [ -f /config/extended/autoconfig ]; then - log "Sonarr previously configured with optimal settings, skipping..." - log "To re-configure Sonarr, delete the following file:" - log "/config/extended/autoconfig" - exit -fi - -if [ -f /config/extended/configs/naming.json ]; then - log "Using custom Sonarr Naming (/config/extended/configs/naming.json)..." - namingJson=$(cat /config/extended/configs/naming.json) +if [ -f /config/extended/naming.json ]; then + log "Using custom Sonarr Naming (/config/extended/naming.json)..." + namingJson=$(cat /config/extended/naming.json) else log "Getting Trash Guide Recommended Naming..." namingJson=$(curl -s "https://raw.githubusercontent.com/TRaSH-/Guides/master/docs/json/sonarr/naming/sonarr-naming.json") @@ -161,8 +154,5 @@ else log "Complete" fi -touch /config/extended/autoconfig -chmod 666 /config/extended/autoconfig - sleep infinity exit $?