|
|
|
@ -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
|
|
|
|
|