summaryrefslogtreecommitdiff
path: root/rhnop-client/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'rhnop-client/debian/postrm')
-rwxr-xr-xrhnop-client/debian/postrm13
1 files changed, 13 insertions, 0 deletions
diff --git a/rhnop-client/debian/postrm b/rhnop-client/debian/postrm
new file mode 100755
index 0000000..eaf8334
--- /dev/null
+++ b/rhnop-client/debian/postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+# postrm script for rhnop-client
+
+set -e
+
+if [ "$1" = "purge" ] ; then
+ if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
+ deluser --quiet --system rhnop || true
+ delgroup --quiet --system rhnop || true
+ else
+ echo "Not removing rhnop user and group: adduser package not found." >&2
+ fi
+fi