summaryrefslogtreecommitdiff
path: root/security/prelude-manager/files/pkg-deinstall.in
blob: c1a7591a19550f9313a85ff8008e6d5d208fed7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -
#
# $FreeBSD$
#

PRELUDEUSER=%%PRELUDEUSER%%
PRELUDEGROUP=%%PRELUDEGROUP%%

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

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