Update 33-script-setup.bash

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

@ -9,10 +9,26 @@ if [ ! -f "/config/scripts/audio-pp.bash" ]; then
chmod 0777 "/config/scripts/audio-pp.bash"
fi
if [ -f "/config/scripts/radarr-pp.bash" ]; then
rm "/config/scripts/radarr-pp.bash"
sleep 0.1
fi
# link config file for use
if [ ! -f "/config/scripts/radarr-pp.bash" ]; then
cp "/usr/local/sabnzbd-scripts/sabnzbd/radarr-pp.bash" "/config/scripts/" && \
chmod 0777 "/config/scripts/radarr-pp.bash"
fi
if [ -f "/config/scripts/sonarr-pp.bash" ]; then
rm "/config/scripts/sonarr-pp.bash"
sleep 0.1
fi
# link config file for use
if [ ! -f "/config/scripts/video-pp.bash" ]; then
ln -s "/usr/local/sabnzbd-scripts/video-pp.bash" "/config/scripts/video-pp.bash" && \
chmod 0777 "/config/scripts/video-pp.bash"
if [ ! -f "/config/scripts/sonarr-pp.bash" ]; then
cp "/usr/local/sabnzbd-scripts/sabnzbd/sonarr-pp.bash" "/config/scripts/" && \
chmod 0777 "/config/scripts/sonarr-pp.bash"
fi
if [ ! -f "/config/sabnzbd.ini" ]; then

Loading…
Cancel
Save