diff --git a/install.sh b/install.sh
index 217d3dc7938b0b9802f42974fdcb67dedeb87e33..2da2c758a397ac1c3880c36c9896509506aa5673 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 e07bb427fbd9976017cae9bf980d50157030ec1c..da9b1f51e679010f063f5ce723cd884536513133 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