From 38d8681719828c52ea3a9b3eebd3aa3511c33dd8 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 22 Mar 2020 20:52:43 -0400 Subject: [PATCH] Update 32-sma-setup.bash --- root/etc/cont-init.d/32-sma-setup.bash | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/root/etc/cont-init.d/32-sma-setup.bash b/root/etc/cont-init.d/32-sma-setup.bash index 146ce72..f5b03a9 100644 --- a/root/etc/cont-init.d/32-sma-setup.bash +++ b/root/etc/cont-init.d/32-sma-setup.bash @@ -1,8 +1,8 @@ #!/usr/bin/with-contenv bash # Remove exisitng -if [ -d "/config/scripts/sma" ]; then - rm -rf "/config/scripts/sma" && \ +if [ -d "/config/scripts/logs" ]; then + rm -rf "/config/scripts/logs" && \ sleep 0.1 fi @@ -12,25 +12,24 @@ if [ -d "/usr/local/sma/config" ]; then fi # create config directory -if [ ! -d "/config/scripts/sma" ]; then - mkdir -p "/config/scripts/sma" && \ - chmod 0777 -R "/config/scripts/sma" +if [ ! -d "/config/scripts/logs" ]; then + mkdir -p "/config/scripts/logs" && \ + chmod 0777 -R "/config/scripts/logs" fi - # import new config, if does not exist if [ ! -f "/config/sma/autoProcess.ini" ]; then cp "/usr/local/sma/setup/autoProcess.ini.sample" "/usr/local/sma/config/autoProcess.ini" fi # create sma log file -touch "/config/scripts/sma/sma.log" && \ +touch "/config/scripts/logs/sma.log" && \ # link sma log file -ln -s "/config/scripts/sma/sma.log" "/usr/local/sma/config/sma.log" && \ +ln -s "/config/scripts/logs/sma.log" "/usr/local/sma/config/sma.log" && \ # set permissions -chmod 0666 "/config/scripts/sma"/* +chmod 0666 "/config/scripts/logs"/* chmod 0777 -R "/usr/local/sma" chmod 0777 -R "/scripts"