Use SMA config file, instead of parameters

pull/10/head
RandomNinjaAtk 5 years ago committed by GitHub
parent 9e8624979f
commit a4ba2f0855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"/*

Loading…
Cancel
Save