From 66fe33fbe7c4b00c6231928681b1f5f44f36e963 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 17 Mar 2020 17:38:34 -0400 Subject: [PATCH] Update 32-sma-setup.bash --- root/etc/cont-init.d/32-sma-setup.bash | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/root/etc/cont-init.d/32-sma-setup.bash b/root/etc/cont-init.d/32-sma-setup.bash index 92f5021..5144c37 100644 --- a/root/etc/cont-init.d/32-sma-setup.bash +++ b/root/etc/cont-init.d/32-sma-setup.bash @@ -1,20 +1,23 @@ #!/usr/bin/with-contenv bash # import new config, if does not exist -if [ ! -f "/config/scripts/autoProcess.ini" ]; then - cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/autoProcess.ini" +if [ ! -f "/config/scripts/configs/sonarr-pp.ini" ]; then + cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/sonarr-pp.ini" # set permissions - chmod 0666 "/config/scripts/autoProcess.ini" + chmod 0666 "/config/scripts/configs/sonarr-pp.ini" fi -# link config file for use -if [ ! -f "/usr/local/sma/config/autoProcess.ini" ]; then - ln -s "/config/scripts/autoProcess.ini" "/usr/local/sma/config/autoProcess.ini" +# 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" + # set permissions + chmod 0666 "/config/scripts/configs/radarr-pp.ini" fi # remove sickbeard_mp4_automator log if exists if [ -f "/var/log/sma.log" ]; then rm "/var/log/sma.log" + touch "/var/log/sma.log" fi # remove sickbeard_mp4_automator log from sma config folder if exists @@ -22,15 +25,6 @@ if [ -f "/config/sma/sma.log" ]; then rm "/config/sma/sma.log" fi -# create sma log file -touch "/config/scripts/sma.log" && \ - -# set permissions -chmod 0666 "/config/scripts/sma.log" && \ - -# link sma log file -ln -s "/config/scripts/sma.log" "/var/log/sma.log" && \ - # Set ffmpeg/ffprobe location sed -i "s/ffmpeg.exe/ffmpeg/g" "/config/scripts/autoProcess.ini" sed -i "s/ffprobe.exe/ffprobe/g" "/config/scripts/autoProcess.ini"