aboutsummaryrefslogtreecommitdiff
path: root/net/openldap23-server/pkg-deinstall
blob: 2a5ec1ef8f65e398c53446909f92ff13a3d3d4fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# $FreeBSD$
#

ECHO_CMD=echo

case $2 in
POST-DEINSTALL)
  ${ECHO_CMD}
  ${ECHO_CMD} "The OpenLDAP server package has been deleted."
  ${ECHO_CMD} "If you're *not* upgrading and won't be using"
  ${ECHO_CMD} "it any longer, you may want to issue the"
  ${ECHO_CMD} "following commands:"
  ${ECHO_CMD}
  if [ -d %%DATABASEDIR%% ]; then
    ${ECHO_CMD} "- to delete the OpenLDAP database permanently (losing all data):"
    ${ECHO_CMD} "  rm -Rf %%DATABASEDIR%%"
    ${ECHO_CMD}
  fi
  if [ -d %%SLURPDIR%% ]; then
    ${ECHO_CMD} "- to remove the OpenLDAP replication directory:"
    ${ECHO_CMD} "  rm -Rf %%SLURPDIR%%"
    ${ECHO_CMD}
  fi
  ${ECHO_CMD} "- to remove the OpenLDAP user:"
  ${ECHO_CMD} "  pw userdel ldap"
  ${ECHO_CMD}
  ${ECHO_CMD} "If you are upgrading, don't forget to restart"
  ${ECHO_CMD} "slapd and slurpd."
  ${ECHO_CMD}
  ;;
esac