From 79bb45c9a2d67556e3e9c9f4bd713d1da6df35ba Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 20 Apr 2020 14:12:07 -0400 Subject: [PATCH] Update 32-sma-setup.bash --- root/etc/cont-init.d/32-sma-setup.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/32-sma-setup.bash b/root/etc/cont-init.d/32-sma-setup.bash index d32b1fb..23d71b3 100644 --- a/root/etc/cont-init.d/32-sma-setup.bash +++ b/root/etc/cont-init.d/32-sma-setup.bash @@ -11,12 +11,18 @@ if [ -d "/usr/local/sma/config" ]; then sleep 0.1 fi -# create config directory +# create logs directory if [ ! -d "/config/scripts/logs" ]; then mkdir -p "/config/scripts/logs" && \ chmod 0777 -R "/config/scripts/logs" fi +# create config directory +if [ ! -d "/config/scripts/configs" ]; then + mkdir -p "/config/scripts/configs" && \ + chmod 0777 -R "/config/scripts/configs" +fi + # import new config, if does not exist if [ ! -f "/config/scripts/configs/autoProcess.ini" ]; then cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/autoProcess.ini"