From 92218257d9f0e58cc7badb3e204b11604765f948 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 18 Mar 2020 08:22:55 -0400 Subject: [PATCH] Update 32-sma-setup.bash --- root/etc/cont-init.d/32-sma-setup.bash | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/root/etc/cont-init.d/32-sma-setup.bash b/root/etc/cont-init.d/32-sma-setup.bash index 95cf9ea..4a2cbea 100644 --- a/root/etc/cont-init.d/32-sma-setup.bash +++ b/root/etc/cont-init.d/32-sma-setup.bash @@ -15,13 +15,13 @@ if [ ! -f "/config/scripts/configs/radarr-pp.ini" ]; then fi # Remove sonarr log -if [ ! -f "/config/scripts/logs/sonarr-pp.log" ]; then +if [ -f "/config/scripts/logs/sonarr-pp.log" ]; then rm "/config/scripts/logs/sonarr-pp.log" && \ sleep 0.1 fi # Remove radarr log -if [ ! -f "/config/scripts/logs/radarr-pp.log" ]; then +if [ -f "/config/scripts/logs/radarr-pp.log" ]; then rm "/config/scripts/logs/radarr-pp.log" && \ sleep 0.1 fi @@ -36,14 +36,6 @@ if [ ! -f "/config/scripts/logs/radarr-pp.log" ]; then touch "/config/scripts/logs/radarr-pp.log" fi -# remove sickbeard_mp4_automator log if exists -if [ -f "/var/log/sma.log" ]; then - rm "/var/log/sma.log" -fi -touch "/var/log/sma.log" -chmod 0777 "/var/log/sma.log" - - # Set ffmpeg/ffprobe location sed -i "s/ffmpeg.exe/ffmpeg/g" "/config/scripts/configs/sonarr-pp.ini" sed -i "s/ffprobe.exe/ffprobe/g" "/config/scripts/configs/sonarr-pp.ini"