added users to syslog group

This commit is contained in:
Rick Falkvinge
2017-01-12 03:00:02 +01:00
parent 860aa8e961
commit c2f8112496
3 changed files with 12 additions and 0 deletions
@@ -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
@@ -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
@@ -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"