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