From 70e3a80cc54636efdb9aa135fb3718fa61928564 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 18 Mar 2020 17:19:59 -0400 Subject: [PATCH] Update 32-sma-setup.bash --- root/etc/cont-init.d/32-sma-setup.bash | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/root/etc/cont-init.d/32-sma-setup.bash b/root/etc/cont-init.d/32-sma-setup.bash index 4a2cbea..458f414 100644 --- a/root/etc/cont-init.d/32-sma-setup.bash +++ b/root/etc/cont-init.d/32-sma-setup.bash @@ -2,14 +2,14 @@ # import new config, if does not exist if [ ! -f "/config/scripts/configs/sonarr-pp.ini" ]; then - cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/sonarr-pp.ini" + cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/sonarr-pp.ini" && \ # set permissions chmod 0666 "/config/scripts/configs/sonarr-pp.ini" fi # import new config, if does not exist if [ ! -f "/config/scripts/configs/radarr-pp.ini" ]; then - cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/radarr-pp.ini" + cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/radarr-pp.ini" && \ # set permissions chmod 0666 "/config/scripts/configs/radarr-pp.ini" fi @@ -28,12 +28,16 @@ fi # create sonarr log if [ ! -f "/config/scripts/logs/sonarr-pp.log" ]; then - touch "/config/scripts/logs/sonarr-pp.log" + touch "/config/scripts/logs/sonarr-pp.log" && \ + # set permissions + chmod 0666 "/config/scripts/logs/sonarr-pp.log" fi # create radarr log if [ ! -f "/config/scripts/logs/radarr-pp.log" ]; then - touch "/config/scripts/logs/radarr-pp.log" + touch "/config/scripts/logs/radarr-pp.log" && \ + # set permissions + chmod 0666 "/config/scripts/logs/radarr-pp.log" fi # Set ffmpeg/ffprobe location