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" && \