Skip to content
Snippets Groups Projects
Commit ffbdc07f authored by David Trattnig's avatar David Trattnig
Browse files

Update lock file and config location.

parent aa63111c
No related branches found
No related tags found
No related merge requests found
......@@ -25,15 +25,20 @@ echo "Installation OPAM Packages ..."
# Development
if [ $mode == "dev" ]; then
# Set LOCK file location
LOCKFILE_DB=configuration/.install.mariadb.lock
echo "Copy configuration to './configuration/engine.ini'"
cp -n sample.engine.ini engine.ini
cp -n configuration/sample.engine.ini configuration/engine.ini
fi
# Production
if [ $mode == "prod" ]; then
# Set LOCK file location
LOCKFILE_DB=/etc/aura/engine/.install.mariadb.lock
if getent passwd 'engineuser' > /dev/null 2>&1; then
echo "User 'engineuser' exists already.";
else
......@@ -84,7 +89,6 @@ while true; do
read -rsn1 input
if [ "$input" = "1" ]; then
echo "Creating DB for MariaDB ..."
LOCKFILE_DB=/etc/aura/engine/.install.mariadb.lock
sudo sh ./script/init-db-mariadb.sh
fi
if [ "$input" = "2" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment