From 63a37c5d5b8932ed3ffa8337404c9ba7f078772e Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 5 Mar 2020 07:35:02 -0500 Subject: [PATCH] Update 02-script-setup.bash --- root/etc/cont-init.d/02-script-setup.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/02-script-setup.bash b/root/etc/cont-init.d/02-script-setup.bash index 7df88a2..3e4492c 100644 --- a/root/etc/cont-init.d/02-script-setup.bash +++ b/root/etc/cont-init.d/02-script-setup.bash @@ -50,39 +50,42 @@ fi if cat "/config/sabnzbd.ini" | grep "\[\[radarr\]\]" | read; then sleep 0.1 else + sed -i '/\[\[movies\]\]/,+7d' "/config/sabnzbd.ini" echo "[[radarr]]" >> "/config/sabnzbd.ini" echo "priority = -100" >> "/config/sabnzbd.ini" echo "pp = \"\"" >> "/config/sabnzbd.ini" echo "name = radarr" >> "/config/sabnzbd.ini" echo "script = Default" >> "/config/sabnzbd.ini" echo "newzbin = \"\"" >> "/config/sabnzbd.ini" - echo "order = 0" >> "/config/sabnzbd.ini" + echo "order = 1" >> "/config/sabnzbd.ini" echo "dir = radarr" >> "/config/sabnzbd.ini" fi if cat "/config/sabnzbd.ini" | grep "\[\[sonarr\]\]" | read; then sleep 0.1 else + sed -i '/\[\[tv\]\]/,+7d' "/config/sabnzbd.ini" echo "[[sonarr]]" >> "/config/sabnzbd.ini" echo "priority = -100" >> "/config/sabnzbd.ini" echo "pp = \"\"" >> "/config/sabnzbd.ini" echo "name = sonarr" >> "/config/sabnzbd.ini" echo "script = Default" >> "/config/sabnzbd.ini" echo "newzbin = \"\"" >> "/config/sabnzbd.ini" - echo "order = 0" >> "/config/sabnzbd.ini" + echo "order = 2" >> "/config/sabnzbd.ini" echo "dir = sonarr" >> "/config/sabnzbd.ini" fi if cat "/config/sabnzbd.ini" | grep "\[\[lidarr\]\]" | read; then sleep 0.1 else + sed -i '/\[\[audio\]\]/,+7d' "/config/sabnzbd.ini" echo "[[lidarr]]" >> "/config/sabnzbd.ini" echo "priority = -100" >> "/config/sabnzbd.ini" echo "pp = \"\"" >> "/config/sabnzbd.ini" echo "name = lidarr" >> "/config/sabnzbd.ini" echo "script = AudioPostProcessing.bash" >> "/config/sabnzbd.ini" echo "newzbin = \"\"" >> "/config/sabnzbd.ini" - echo "order = 0" >> "/config/sabnzbd.ini" + echo "order = 3" >> "/config/sabnzbd.ini" echo "dir = lidarr" >> "/config/sabnzbd.ini" fi