mirror of
https://github.com/alerta/alerta.git
synced 2025-01-30 03:33:59 +00:00
19 lines
373 B
Bash
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
|