|
|
@ -11,12 +11,18 @@ if [ -d "/usr/local/sma/config" ]; then
|
|
|
|
sleep 0.1
|
|
|
|
sleep 0.1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# create config directory
|
|
|
|
# create logs directory
|
|
|
|
if [ ! -d "/config/scripts/logs" ]; then
|
|
|
|
if [ ! -d "/config/scripts/logs" ]; then
|
|
|
|
mkdir -p "/config/scripts/logs" && \
|
|
|
|
mkdir -p "/config/scripts/logs" && \
|
|
|
|
chmod 0777 -R "/config/scripts/logs"
|
|
|
|
chmod 0777 -R "/config/scripts/logs"
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
# import new config, if does not exist
|
|
|
|
if [ ! -f "/config/scripts/configs/autoProcess.ini" ]; then
|
|
|
|
if [ ! -f "/config/scripts/configs/autoProcess.ini" ]; then
|
|
|
|
cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/autoProcess.ini"
|
|
|
|
cp "/usr/local/sma/setup/autoProcess.ini.sample" "/config/scripts/configs/autoProcess.ini"
|
|
|
|