From 59bfd2f9cf6113346aa98083c35462568a3825e9 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 5 Sep 2023 10:50:49 +0000 Subject: [PATCH] Allow customizations of recyclarr and sma configs Support will not be provided for changes to these configs... --- sonarr/setup.bash | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sonarr/setup.bash b/sonarr/setup.bash index 3248b2c..a5e5d59 100644 --- a/sonarr/setup.bash +++ b/sonarr/setup.bash @@ -91,13 +91,17 @@ echo "Download Extras script..." curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/Extras.bash -o /config/extended/Extras.bash echo "Done" -echo "Download SMA config..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/sma.ini -o /config/extended/sma.ini -echo "Done" +if [ ! -f /config/extended/sma.ini ]; then + echo "Download SMA config..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/sma.ini -o /config/extended/sma.ini + echo "Done" +fi -echo "Download Recyclarr config..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/recyclarr.yaml -o /config/extended/recyclarr.yaml -echo "Done" +if [ ! -f /config/extended/recyclarr.yaml ]; then + echo "Download Recyclarr config..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/recyclarr.yaml -o /config/extended/recyclarr.yaml + echo "Done" +fi if [ ! -f /config/extended.conf ]; then echo "Download Extended config..."