From 0439ddfd0961fe01234cc6bac762b1b0741bb5a1 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 17 Mar 2020 08:12:23 -0400 Subject: [PATCH] Update 33-script-setup.bash --- root/etc/cont-init.d/33-script-setup.bash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash index 1cb2fe2..6f7106b 100644 --- a/root/etc/cont-init.d/33-script-setup.bash +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -81,9 +81,7 @@ if cat "/config/sabnzbd.ini" | grep "\[categories\]" | read; then echo "newzbin = \"\"" >> "/config/sabnzbd.ini" && \ echo "order = 3" >> "/config/sabnzbd.ini" && \ echo "dir = lidarr" >> "/config/sabnzbd.ini" -fi - -if cat "/config/sabnzbd.ini" | grep "\[categories\]" | read; then + restartsab=$(pgrep s6-supervise | sort -r | head -n1) && \ kill ${restartsab} && \ echo "config updated" && \