From c306ae446065d07f555a0ae06df7edeb5797ce6c Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 18 Mar 2020 16:07:02 -0400 Subject: [PATCH] Update 33-script-setup.bash --- root/etc/cont-init.d/33-script-setup.bash | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash index 99add98..50d615b 100644 --- a/root/etc/cont-init.d/33-script-setup.bash +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -3,9 +3,14 @@ # set permissions chmod 0777 -R /usr/local/sabnzbd-scripts -# link config file for use +if [ -f "/config/scripts/audio-pp.bash" ]; then + rm "/config/scripts/audio-pp.bash" + sleep 0.1 +fi + +# cp config file for use if [ ! -f "/config/scripts/audio-pp.bash" ]; then - ln -s "/usr/local/sabnzbd-scripts/audio-pp.bash" "/config/scripts/audio-pp.bash" && \ + cp "/usr/local/sabnzbd-scripts/audio-pp.bash" "/config/scripts/audio-pp.bash" && \ chmod 0777 "/config/scripts/audio-pp.bash" fi