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

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