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" && \