Skip to content
Snippets Groups Projects
Forked from AURA / engine
1704 commits behind, 707 commits ahead of the upstream repository.
initialize.sh 673 B
#!/bin/bash

#
# Prepare folders and permissions for installing engine on production.
#
# You'll need sudo/root privileges.
#

echo "Create Log Directory '/var/log/aura/'"
mkdir -p /var/log/aura

echo "Create Configuration Directory '/etc/aura/'"
mkdir -p /etc/aura

echo "Set Ownership of '/opt/aura/engine', '/var/log/aura/' and '/etc/aura/engine.ini' to Engine User"
chown -R engineuser:engineuser /opt/aura
chown -R engineuser:engineuser /etc/aura
chown -R engineuser:engineuser /var/log/aura
chown -R engineuser:engineuser /var/log/supervisor

echo "Copy Systemd unit files to '/etc/systemd/system/'"
cp -n /opt/aura/engine/configuration/systemd/* /etc/systemd/system/