From 0a696dd9cbb0721013dcd5f1bc1d2093be9894d5 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 15 Jan 2017 19:57:34 +0100 Subject: [PATCH] mkdir /var/log/swarmops --- BuildFiles/Packaging/templates/postinst-backend.template | 6 ++++-- BuildFiles/Packaging/templates/postinst-frontend.template | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/BuildFiles/Packaging/templates/postinst-backend.template b/BuildFiles/Packaging/templates/postinst-backend.template index 9ea926f8..82b87f31 100644 --- a/BuildFiles/Packaging/templates/postinst-backend.template +++ b/BuildFiles/Packaging/templates/postinst-backend.template @@ -2,8 +2,10 @@ #echo "DEBUG: Executing post-installation script, swarmops-backend" -adduser --system --group --no-create-home --quiet swarmopsback -usermod -a -G syslog swarmopsback +adduser --system --group --no-create-home --quiet swarmops +usermod -a -G syslog swarmops + +mkdir -p /var/log/swarmops #Upstart deprecated; support systemd only diff --git a/BuildFiles/Packaging/templates/postinst-frontend.template b/BuildFiles/Packaging/templates/postinst-frontend.template index e42e790f..8fb72aa9 100644 --- a/BuildFiles/Packaging/templates/postinst-frontend.template +++ b/BuildFiles/Packaging/templates/postinst-frontend.template @@ -2,8 +2,10 @@ #echo "DEBUG: Executing post-install script, swarmops-frontend" -adduser --system --group --no-create-home --quiet swarmopsfront -usermod -a -G syslog swarmopsfront +adduser --system --group --no-create-home --quiet swarmops +usermod -a -G syslog swarmops + +mkdir -p /var/log/swarmops # make sure the upload folder exists and is writeable by www-data # do not make any changes to an already existing folder