From c2f8112496cf458324ca55b785a43fef70a9cac3 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 12 Jan 2017 03:00:02 +0100 Subject: [PATCH] added users to syslog group --- .../Packaging/templates/postinst-backend.template | 1 + .../Packaging/templates/postinst-frontend.template | 1 + BuildFiles/Packaging/templates/prerm-frontend.template | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 BuildFiles/Packaging/templates/prerm-frontend.template diff --git a/BuildFiles/Packaging/templates/postinst-backend.template b/BuildFiles/Packaging/templates/postinst-backend.template index 165000b6..9ea926f8 100644 --- a/BuildFiles/Packaging/templates/postinst-backend.template +++ b/BuildFiles/Packaging/templates/postinst-backend.template @@ -3,6 +3,7 @@ #echo "DEBUG: Executing post-installation script, swarmops-backend" adduser --system --group --no-create-home --quiet swarmopsback +usermod -a -G syslog swarmopsback #Upstart deprecated; support systemd only diff --git a/BuildFiles/Packaging/templates/postinst-frontend.template b/BuildFiles/Packaging/templates/postinst-frontend.template index 8663794e..a0715d63 100644 --- a/BuildFiles/Packaging/templates/postinst-frontend.template +++ b/BuildFiles/Packaging/templates/postinst-frontend.template @@ -3,6 +3,7 @@ #echo "DEBUG: Executing post-install script, swarmops-frontend" adduser --system --group --no-create-home --quiet swarmopsfront +usermod -a -G syslog swarmopsfront # make sure the upload folder exists and is writeable by www-data # do not make any changes to an already existing folder diff --git a/BuildFiles/Packaging/templates/prerm-frontend.template b/BuildFiles/Packaging/templates/prerm-frontend.template new file mode 100644 index 00000000..dfb70c4f --- /dev/null +++ b/BuildFiles/Packaging/templates/prerm-frontend.template @@ -0,0 +1,10 @@ +#! /bin/bash + +#echo "DEBUG: Executing pre-remove script, swarmops-frontend" + +# Support for Upstart deprecated; support systemd only + +systemctl stop swarmops-frontend +systemctl disable swarmops-frontend + +#echo "DEBUG: Exiting pre-remove script, swarmops-frontend"