summaryrefslogtreecommitdiff
path: root/rhnop-client/debian/postrm
blob: eaf83342972da53892e8e8cdf9f6838e4cafc3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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