Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lars Kruse
aura-engine
Commits
aa29cda8
Commit
aa29cda8
authored
Jan 29, 2021
by
David Trattnig
Browse files
Obsolete script.
#72
parent
87917ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
deleted
100755 → 0
View file @
87917ee1
#!/bin/bash
mode
=
"dev"
if
[[
$*
=
~ ^
(
prod
)
$
]]
;
then
mode
=
"prod"
fi
if
[
$mode
==
"dev"
]
;
then
echo
"[Installing AURA ENGINE for Development]"
fi
if
[
$mode
==
"prod"
]
;
then
echo
"[Installing AURA ENGINE for Production]"
fi
# Find the correct Python version (3.7 or 3.8)
if
hash
python3.9 2>/dev/null
;
then
PYTHON_EXEC
=
"python3.9"
echo
"[ Using Python 3.9 ]"
else
PYTHON_EXEC
=
"python3.8"
echo
"[ Using Python 3.8 ]"
fi
# Development and Production
echo
"Installing OPAM Packages ..."
bash scripts/install-opam-packages.sh
echo
"Installing Python Requirements ..."
$PYTHON_EXEC
$(
which pip3
)
install
-r
requirements.txt
# Development
if
[
$mode
==
"dev"
]
;
then
echo
"Copy configuration to './config/engine.ini'"
cp
-n
config/sample-development.engine.ini config/engine.ini
fi
# Production
if
[
$mode
==
"prod"
]
;
then
echo
"Copy default Engine configuration to '/etc/aura/engine.ini'"
cp
-n
config/sample-production.engine.ini /etc/aura/engine.ini
fi
echo
echo
"+++ Installation of AURA Engine finished! +++"
echo
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment