From a4ba2f08556a2e300797ce616ab738a3e455e466 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 20 Apr 2020 13:39:43 -0400 Subject: [PATCH] Use SMA config file, instead of parameters --- root/etc/cont-init.d/32-sma-setup.bash | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/32-sma-setup.bash b/root/etc/cont-init.d/32-sma-setup.bash index f5b03a9..d32b1fb 100644 --- a/root/etc/cont-init.d/32-sma-setup.bash +++ b/root/etc/cont-init.d/32-sma-setup.bash @@ -18,15 +18,16 @@ if [ ! -d "/config/scripts/logs" ]; then 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" +if [ ! -f "/config/scripts/configs/autoProcess.ini" ]; then + cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/autoProcess.ini" fi # create sma log file touch "/config/scripts/logs/sma.log" && \ -# link sma log file +# link sma files ln -s "/config/scripts/logs/sma.log" "/usr/local/sma/config/sma.log" && \ +ln -s "/config/scripts/configs/autoProcess.ini" "/usr/local/sma/config/autoProcess.ini" && \ # set permissions chmod 0666 "/config/scripts/logs"/*