Update AutoConfig.service

This commit is contained in:
RandomNinjaAtk 2023-07-08 12:46:56 -04:00 committed by GitHub
parent fd7f382137
commit ac1e4942fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 $?