aboutsummaryrefslogtreecommitdiff
path: root/debian/mauvealert-server.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mauvealert-server.postrm')
-rw-r--r--debian/mauvealert-server.postrm20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/mauvealert-server.postrm b/debian/mauvealert-server.postrm
new file mode 100644
index 0000000..d54e402
--- /dev/null
+++ b/debian/mauvealert-server.postrm
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -e
+
+RUNASUSER=mauvealert
+
+if [ "$1" = "purge" ] ; then
+ ##
+ # Remove the system user
+ ##
+ deluser --system $RUNASUSER > /dev/null
+
+ ##
+ # remove default directories
+ ##
+ rm -rf /var/log/mauvealert/
+ rm -rf /var/lib/mauvealert/
+fi
+
+#DEBHELPER#