From f9e89750310d1147206554ec43ead68995553d78 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 26 Mar 2020 10:21:37 -0400 Subject: [PATCH] Add beets config file --- root/etc/cont-init.d/33-script-setup.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash index 7d52853..ab399bd 100644 --- a/root/etc/cont-init.d/33-script-setup.bash +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -8,6 +8,12 @@ if [ -f "/config/scripts/audio-pp.bash" ]; then sleep 0.1 fi +# cp config file for use +if [ ! -f "/config/scripts/beets-config.yaml" ]; then + cp "/usr/local/sabnzbd-scripts/beets-config.yaml" "/config/scripts/beets-config.yaml" && \ + chmod 0666 "/config/scripts/beets-config.yaml" +fi + # cp config file for use if [ ! -f "/config/scripts/audio-pp.bash" ]; then cp "/usr/local/sabnzbd-scripts/audio-pp.bash" "/config/scripts/audio-pp.bash" && \