Update 33-script-setup.bash

pull/1/head
RandomNinjaAtk 5 years ago committed by GitHub
parent 8de477feaa
commit dda08f8545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,9 +15,8 @@ fi
if [ ! -f "/config/scripts/sab-config-updated" ]; then
# start cron
service cron start
if [ -f "/config/sabnzbd.ini" ]; then
if cat "/config/sabnzbd.ini" | grep "\[categories\]" | read; then
# Add scripts path
if cat "/config/sabnzbd.ini" | grep "script_dir = \"\"" | read; then
sed -i "s/script_dir = \"\"/script_dir = \"\/config\/scripts\"/g" "/config/sabnzbd.ini"
@ -95,7 +94,7 @@ if [ ! -f "/config/scripts/sab-config-updated" ]; then
chmod 0666 "/config/scripts/sab-config-updated"
fi
fi
fi
if [ -f "/config/scripts/sab-config-updated" ]; then
# stop cron
service cron stop

Loading…
Cancel
Save