Update 33-script-setup.bash

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

@ -17,6 +17,9 @@ if [ ! -f "/config/scripts/sab-config-updated" ]; then
service cron start
if [ -f "/config/sabnzbd.ini" ]; then
if cat "/config/sabnzbd.ini" | grep "\[categories\]" | read; then
if cat "/config/sabnzbd.ini" | grep "\[\[radarr\]\]" | read; then
sleep 0.1
else
# 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,6 +98,7 @@ if [ ! -f "/config/scripts/sab-config-updated" ]; then
fi
fi
fi
fi
if [ -f "/config/scripts/sab-config-updated" ]; then
# stop cron
service cron stop

Loading…
Cancel
Save