aboutsummaryrefslogtreecommitdiff
path: root/irc/bitlbee-otr/files/pkg-deinstall.in
blob: ace23937dfc03f7d0c0293e5a5baeba8a31f411f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -
#
# $FreeBSD$
#

BITLBEEUSER=%%BITLBEEUSER%%
BITLBEEGROUP=%%BITLBEEGROUP%%

if [ "$2" = "POST-DEINSTALL" ]; then
  if /usr/sbin/pw group show "${BITLBEEGROUP}" 2>&1 >/dev/null; then
    echo "You should manually remove the \"${BITLBEEGROUP}\" group."
  fi

  if /usr/sbin/pw user show "${BITLBEEUSER}" 2>&1 >/dev/null; then
    echo "You should manually remove the \"${BITLBEEUSER}\" user."
  fi
fi