aboutsummaryrefslogtreecommitdiffstats
path: root/security/nessus-devel/scripts/pkg-deinstall
blob: fd0c844465cbaf229d1e9138dfc020ab4c4f7f1c (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
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/nessus-devel/scripts/Attic/pkg-deinstall,v 1.1 2004-11-09 18:29:42 sem Exp $
#

ECHO_CMD=echo

case $2 in
POST-DEINSTALL)
  ${ECHO_CMD}
  ${ECHO_CMD} "The %%PKGNAME%% 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 %%PREFIX%%/var/nessus ]; then
    ${ECHO_CMD} "- to delete the nessus server permanently (losing all data):"
    ${ECHO_CMD} "  rm -Rf %%PREFIX%%/var/nessus"
    ${ECHO_CMD}
  fi
  if [ -d %%PREFIX%%/com/CA ]; then
    ${ECHO_CMD} "- to remove the Certificate Authority associated with nessus:"
    ${ECHO_CMD} "  rm -Rf %%PREFIX%%/com/CA"
    ${ECHO_CMD}
  fi
  ${ECHO_CMD} "If you are upgrading, don't forget to restart"
  ${ECHO_CMD} "nessusd and updating the plugins."
  ${ECHO_CMD}
  ;;
esac