diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-12-15 16:01:51 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-12-15 16:01:51 +0000 |
commit | 576bf06eee9d66a02548d550f502780e85f2647a (patch) | |
tree | 7c265e02c897da89d3e6228a62cb3609fc5d3cf5 /security/nessus/scripts | |
parent | fc64824d902478e57ea509474315b8e262cc3034 (diff) | |
download | ports-576bf06eee9d66a02548d550f502780e85f2647a.tar.gz ports-576bf06eee9d66a02548d550f502780e85f2647a.zip |
Notes
Diffstat (limited to 'security/nessus/scripts')
-rw-r--r-- | security/nessus/scripts/pkg-deinstall | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/security/nessus/scripts/pkg-deinstall b/security/nessus/scripts/pkg-deinstall index 53ba586f97f6..573b33a8ace9 100644 --- a/security/nessus/scripts/pkg-deinstall +++ b/security/nessus/scripts/pkg-deinstall @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.1 2004-11-09 18:29:03 sem Exp $ +# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.2 2004-12-15 16:01:51 sem Exp $ # ECHO_CMD=echo @@ -18,9 +18,16 @@ POST-DEINSTALL) ${ECHO_CMD} " rm -Rf %%PREFIX%%/var/nessus" ${ECHO_CMD} fi + rm_dir="" if [ -d %%PREFIX%%/com/CA ]; then + rm_dir=" %%PREFIX%%/com/CA" + fi + if [ -d %%PREFIX%%/var/CA ]; then + rm_dir="$rm_dir %%PREFIX%%/var/CA" + fi + if [ "x$rm_dir" != "x" ]; then ${ECHO_CMD} "- to remove the Certificate Authority associated with nessus:" - ${ECHO_CMD} " rm -Rf %%PREFIX%%/com/CA" + ${ECHO_CMD} " rm -Rf$rm_dir" ${ECHO_CMD} fi ${ECHO_CMD} "If you are upgrading, don't forget to restart" |