0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-30 03:33:59 +00:00
alerta_alerta/contrib/debian/alerta-server.postinst
2013-06-27 17:22:23 +01:00

19 lines
447 B
Bash

#!/bin/sh -e
if ! getent group alerta >/dev/null; then
echo Adding group: alerta.
addgroup --system alerta
fi
if ! getent passwd alerta >/dev/null; then
echo Adding system user: alerta.
adduser --system --ingroup alerta --home /var/run/alerta alerta
usermod -c "Alerta monitoring system" alerta
usermod -d "/var/run/alerta" alerta
usermod -g "alerta" alerta
usermod -s "/bin/false" alerta
fi
#DEBHELPER#
exit 0