Update AutoConfig.service
This commit is contained in:
parent
fd7f382137
commit
ac1e4942fc
1 changed files with 3 additions and 13 deletions
|
@ -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 $?
|
||||
|
|
Loading…
Reference in a new issue