summaryrefslogtreecommitdiff
path: root/debian/rhnop-common.postrm
blob: 14f36ba7025949baea3945413d17f284a76b9e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# postrm script for rhnop

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