From 9203fa6bf1e13715ff455d96d1d4dce83512d2c3 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 5 Mar 2020 09:09:53 -0500 Subject: [PATCH] Update 02-script-setup.bash --- root/etc/cont-init.d/02-script-setup.bash | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/root/etc/cont-init.d/02-script-setup.bash b/root/etc/cont-init.d/02-script-setup.bash index 4666a4c..0d0bfa7 100644 --- a/root/etc/cont-init.d/02-script-setup.bash +++ b/root/etc/cont-init.d/02-script-setup.bash @@ -19,15 +19,15 @@ if [ ! -f "/config/scripts/AudioPostProcessing.bash" ]; then fi # Create downloads incomplete directory -if [ ! -d "/downloads/incomplete" ]; then - mkdir -p "/downloads/incomplete" - chmod 0777 "/downloads/incomplete" +if [ ! -d "/downloads/sabnzbd/incomplete" ]; then + mkdir -p "/downloads/sabnzbd/incomplete" + chmod 0777 "/downloads/sabnzbd/incomplete" fi # Create downloads complete directory -if [ ! -d "/downloads/complete" ]; then - mkdir -p "/downloads/complete" - chmod 0777 "/downloads/incomplete" +if [ ! -d "/downloads/sabnzbd/complete" ]; then + mkdir -p "/downloads/sabnzbd/complete" + chmod 0777 "/downloads/sabnzbd/complete" fi if [ ! -f "/config/scripts/sab-config-updated" ]; then @@ -44,17 +44,17 @@ if [ ! -f "/config/scripts/sab-config-updated" ]; then fi # Correct incomplete path - if cat "/config/sabnzbd.ini" | grep "/downloads/incomplete" | read; then + if cat "/config/sabnzbd.ini" | grep "/downloads/sabnzbd/incomplete" | read; then sleep 0.1 else - sed -i "s/Downloads\/incomplete/\/downloads\/incomplete/g" "/config/sabnzbd.ini" + sed -i "s/Downloads\/incomplete/\/downloads\/sabnzbd\/incomplete/g" "/config/sabnzbd.ini" fi # Correct complete path - if cat "/config/sabnzbd.ini" | grep "/downloads/complete" | read; then + if cat "/config/sabnzbd.ini" | grep "/downloads/sabnzbd/complete" | read; then sleep 0.1 else - sed -i "s/Downloads\/complete/\/downloads\/complete/g" "/config/sabnzbd.ini" + sed -i "s/Downloads\/complete/\/downloads\/sabnzbd\/complete/g" "/config/sabnzbd.ini" fi # Enable script failure