From 5170257be249642c864861bb5033ae905d0309dd Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 17 Mar 2020 19:15:21 -0400 Subject: [PATCH] enable pause on post processing by default --- root/etc/cont-init.d/33-script-setup.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash index 97522c7..e068ea4 100644 --- a/root/etc/cont-init.d/33-script-setup.bash +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -58,8 +58,14 @@ if cat "/config/sabnzbd.ini" | grep "\[categories\]" | read; then if cat "/config/sabnzbd.ini" | grep "script_can_fail = 0" | read; then sed -i "s/script_can_fail = 0/script_can_fail = 1/g" "/config/sabnzbd.ini" fi + + # Enable pause on post processing + if cat "/config/sabnzbd.ini" | grep "pause_on_post_processing = 0" | read; then + sed -i "s/pause_on_post_processing = 0/pause_on_post_processing = 1/g" "/config/sabnzbd.ini" + fi + - # Enable permissions failure + # Set permissions if cat "/config/sabnzbd.ini" | grep "permissions = \"\"" | read; then sed -i "s/permissions = \"\"/permissions = \"766\"/g" "/config/sabnzbd.ini" fi