From ad292bf64e4ed98d4a8496bb6722151aaa54a248 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 16 Mar 2020 20:45:31 -0400 Subject: [PATCH] Update 80-sma-link.bash --- root/etc/cont-init.d/80-sma-link.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/root/etc/cont-init.d/80-sma-link.bash b/root/etc/cont-init.d/80-sma-link.bash index 2225171..09a3dea 100644 --- a/root/etc/cont-init.d/80-sma-link.bash +++ b/root/etc/cont-init.d/80-sma-link.bash @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bash # import new config, if does not exist -if [ ! -f "/config/scripts/sma/autoProcess.ini" ]; then +if [ ! -f "/config/scripts/autoProcess.ini" ]; then cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/autoProcess.ini" # set permissions chmod 0666 "/config/scripts/autoProcess.ini" @@ -23,16 +23,16 @@ if [ -f "/config/sma/sma.log" ]; then fi # create sma log file -touch "/config/scripts/sma/sma.log" && \ +touch "/config/scripts/sma.log" && \ # set permissions -chmod 0666 "/config/scripts/sma/sma.log" && \ +chmod 0666 "/config/scripts/sma.log" && \ # link sma log file -ln -s "/config/scripts/sma/sma.log" "/var/log/sma.log" && \ +ln -s "/config/scripts/sma.log" "/var/log/sma.log" && \ # Set ffmpeg/ffprobe location -sed -i "s/ffmpeg.exe/ffmpeg/g" "/config/scripts/sma/autoProcess.ini" -sed -i "s/ffprobe.exe/ffprobe/g" "/config/scripts/sma/autoProcess.ini" +sed -i "s/ffmpeg.exe/ffmpeg/g" "/config/scripts/autoProcess.ini" +sed -i "s/ffprobe.exe/ffprobe/g" "/config/scripts/autoProcess.ini" exit 0