Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine-core
Commits
071fd7c5
Commit
071fd7c5
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Generalized lock.
parent
bcae7ad8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+29
-24
29 additions, 24 deletions
install.sh
with
29 additions
and
24 deletions
install.sh
+
29
−
24
View file @
071fd7c5
...
@@ -32,7 +32,7 @@ python3.7 $(which pip3) install -r requirements.txt
...
@@ -32,7 +32,7 @@ python3.7 $(which pip3) install -r requirements.txt
if
[
$mode
==
"dev"
]
;
then
if
[
$mode
==
"dev"
]
;
then
# Set LOCK file location
# Set LOCK file location
LOCKFILE_DB
=
configuration/.engine.install-
maria
db.lock
LOCKFILE_DB
=
configuration/.engine.install-db.lock
echo
"Create local Logs Folder ..."
echo
"Create local Logs Folder ..."
mkdir
-p
logs
mkdir
-p
logs
...
@@ -46,7 +46,7 @@ fi
...
@@ -46,7 +46,7 @@ fi
if
[
$mode
==
"prod"
]
;
then
if
[
$mode
==
"prod"
]
;
then
# Set LOCK file location
# Set LOCK file location
LOCKFILE_DB
=
/etc/aura/.engine.install-
maria
db.lock
LOCKFILE_DB
=
/etc/aura/.engine.install-db.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."
;
...
@@ -77,29 +77,34 @@ fi
...
@@ -77,29 +77,34 @@ fi
# Setup Database
# Setup Database
# Check if databases are already set-up
if
test
-f
"
$LOCKFILE_DB
"
;
then
echo
"Aura Engine Databases are already existing! Skipping..."
else
echo
"Setting up database ..."
echo
echo
"Which database system do you want to use? (Press '1' or '2')"
echo
" [1] MariaDB"
echo
" [2] Other / Manually"
echo
while
true
;
do
read
-rsn1
input
if
[
"
$input
"
=
"1"
]
;
then
echo
"Creating DB for MariaDB ..."
bash script/init-db-mariadb.sh
break
fi
if
[
"
$input
"
=
"2"
]
;
then
echo
"Manual database setup selected."
break
fi
done
echo
"Setting up database ..."
# Create lockfile to avoid accidential re-creation of the database
echo
touch
$LOCKFILE_DB
echo
"Which database system do you want to use? (Press '1' or '2')"
echo
" [1] MariaDB"
echo
" [2] Other / Manually"
echo
while
true
;
do
read
-rsn1
input
if
[
"
$input
"
=
"1"
]
;
then
echo
"Creating DB for MariaDB ..."
bash script/init-db-mariadb.sh
break
fi
if
[
"
$input
"
=
"2"
]
;
then
echo
"Manual database setup selected."
break
fi
fi
done
# Create lockfile to avoid accidential re-creation of the database
touch
$LOCKFILE_DB
echo
echo
echo
"+++ Installation of AURA Engine finished! +++"
echo
"+++ Installation of AURA Engine finished! +++"
\ No newline at end of file
echo
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment