Skip to content
Snippets Groups Projects
Commit e0b0b831 authored by David Trattnig's avatar David Trattnig
Browse files

Extend install script.

parent dd265fd5
Branches
Tags
No related merge requests found
......@@ -18,7 +18,16 @@ fi
# Production
if [ $mode == "api" ]; then
if [ $mode == "dev" ]; then
echo "Copy configuration to './configuration/engine.ini'"
cp -n sample.engine.ini engine.ini
fi
# Production
if [ $mode == "prod" ]; then
if getent passwd 'engineuser' > /dev/null 2>&1; then
echo "User 'engineuser' exists already.";
else
......@@ -27,9 +36,6 @@ if [ $mode == "api" ]; then
adduser engineuser sudo
fi
echo "Set Ownership of '/opt/aura/engine' to Engine User"
chown -R engineuser:engineuser .
echo "Copy Supervisor Config to '/etc/supervisor/conf.d'"
cp configuration/supervisor/engine-api.conf /etc/supervisor/conf.d/
......@@ -39,7 +45,14 @@ if [ $mode == "api" ]; then
echo "Create Configuration Directory `/etc/aura/engine`"
mkdir -p /etc/aura
mkdir -p /etc/aura/engine
echo "Copy configuration to './configuration/engine.ini'"
cp -n sample.engine.ini engine.ini
echo "Set Ownership of '/opt/aura/engine', '/var/log/aura/' and '/etc/aura/engine.ini' to Engine User"
chown -R engineuser:engineuser .
chown -R engineuser:engineuser /var/log/aura/
chown -R engineuser:engineuser /etc/aura/engine.ini
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment