From 1bd9e162628d05c1462a7037a593249e9fff5318 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Thu, 21 May 2020 11:11:34 +0200 Subject: [PATCH] Copy systemd units upon init. --- script/initialize.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/initialize.sh b/script/initialize.sh index 711a721e..e2d1fe6d 100755 --- a/script/initialize.sh +++ b/script/initialize.sh @@ -3,6 +3,8 @@ # # 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 @@ -14,4 +16,7 @@ echo "Set Ownership of '/opt/aura/engine', '/var/log/aura/' and '/etc/aura/engin 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 \ No newline at end of file +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/ \ No newline at end of file -- GitLab