From ce9db013fb0fb5ffd838386b4870c482c2c9c2b0 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 17 Mar 2020 17:34:30 -0400 Subject: [PATCH] Update 33-script-setup.bash --- root/etc/cont-init.d/33-script-setup.bash | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash index 92e6803..98420dc 100644 --- a/root/etc/cont-init.d/33-script-setup.bash +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -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