From a77ae9ebb781c47cfe20e9dffef25274f05aefe5 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Mon, 27 Apr 2020 18:14:10 +0200 Subject: [PATCH] Lock DB in main routine. --- install.sh | 3 +++ script/init-db-mariadb.sh | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 217d3dc7..2da2c758 100755 --- a/install.sh +++ b/install.sh @@ -98,5 +98,8 @@ if [ "$input" = "2" ]; then fi done + # Create lockfile to avoid accidential re-creation of the database + touch $LOCKFILE_DB + echo echo "+++ Installation of AURA Engine finished! +++" \ No newline at end of file diff --git a/script/init-db-mariadb.sh b/script/init-db-mariadb.sh index e07bb427..da9b1f51 100644 --- a/script/init-db-mariadb.sh +++ b/script/init-db-mariadb.sh @@ -38,7 +38,4 @@ else echo "-----------------------------------------------------------------------" echo - - # Create lockfile to avoid accidential re-creation of the database - touch $LOCKFILE_DB fi \ No newline at end of file -- GitLab