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