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