|
|
@ -17,6 +17,9 @@ if [ ! -f "/config/scripts/sab-config-updated" ]; then
|
|
|
|
service cron start
|
|
|
|
service cron start
|
|
|
|
if [ -f "/config/sabnzbd.ini" ]; then
|
|
|
|
if [ -f "/config/sabnzbd.ini" ]; then
|
|
|
|
if cat "/config/sabnzbd.ini" | grep "\[categories\]" | read; 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
|
|
|
|
# Add scripts path
|
|
|
|
if cat "/config/sabnzbd.ini" | grep "script_dir = \"\"" | read; then
|
|
|
|
if cat "/config/sabnzbd.ini" | grep "script_dir = \"\"" | read; then
|
|
|
|
sed -i "s/script_dir = \"\"/script_dir = \"\/config\/scripts\"/g" "/config/sabnzbd.ini"
|
|
|
|
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
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ -f "/config/scripts/sab-config-updated" ]; then
|
|
|
|
if [ -f "/config/scripts/sab-config-updated" ]; then
|
|
|
|
# stop cron
|
|
|
|
# stop cron
|
|
|
|
service cron stop
|
|
|
|
service cron stop
|
|
|
|