aboutsummaryrefslogtreecommitdiff
path: root/debian/mauvealert-server.postrm
diff options
context:
space:
mode:
authorJames Carter <james.carter@bytemark.co.uk>2017-08-01 15:56:35 +0100
committerJames Carter <james.carter@bytemark.co.uk>2017-08-01 15:56:35 +0100
commit4eff930c3f01414bb454d7bcb5501827cb60289b (patch)
treea398edd68c7fd30cf3987538e41e9b4df9f561b8 /debian/mauvealert-server.postrm
parent0be1fa0ebadf9435a760582d17f47ff96dc0851c (diff)
parent814ed65fd415cc62b2f6f661a7f6d1629562544b (diff)
Merge branch '27-package-and-publish-in-gitlab-ci-retire-maker2-job' into 'develop'
Added CI Closes #27 See merge request !2
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#