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-sever.postrm
2013-06-27 17:22:23 +01:00

19 lines
373 B
Bash

#!/bin/sh -e
if [ "$1" = "purge" ] ; then
if [ ! -f /usr/bin/alerta ] ; then
if [ -d /var/log/alerta ]; then
rm -rf /var/log/alerta
fi
if getent passwd alerta >/dev/null; then
userdel alerta
fi
if getent group alerta >/dev/null; then
groupdel alerta
fi
fi
fi
#DEBHELPER#
exit 0