aboutsummaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl2/pkg-deinstall
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2002-01-17 23:04:40 +0800
committerkevlo <kevlo@FreeBSD.org>2002-01-17 23:04:40 +0800
commit26a330ca091845859b865b30775a3bed548b9b59 (patch)
tree69aa957145d0495b409b9f68dcf61956e90d4ead /security/cyrus-sasl2/pkg-deinstall
parentcba346bc6c9f1fbe4e497b70ff835413705928b6 (diff)
downloadfreebsd-ports-gnome-26a330ca091845859b865b30775a3bed548b9b59.tar.gz
freebsd-ports-gnome-26a330ca091845859b865b30775a3bed548b9b59.tar.zst
freebsd-ports-gnome-26a330ca091845859b865b30775a3bed548b9b59.zip
Update to version 1.5.27
PR: 33603 Submitted by: MAINTAINER
Diffstat (limited to 'security/cyrus-sasl2/pkg-deinstall')
-rw-r--r--security/cyrus-sasl2/pkg-deinstall8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/cyrus-sasl2/pkg-deinstall b/security/cyrus-sasl2/pkg-deinstall
index 9e18cc7e18ed..fe997778b912 100644
--- a/security/cyrus-sasl2/pkg-deinstall
+++ b/security/cyrus-sasl2/pkg-deinstall
@@ -15,7 +15,13 @@ SASLDB_NAME=${PKG_PREFIX}/etc/%%SASLDB%%
# delete sasldb database
delete_sasldb() {
- [ -f ${SASLDB_NAME} -a ! -s ${SASLDB_NAME} ] && rm ${SASLDB_NAME}
+ if [ -f ${SASLDB_NAME} ] ; then
+ if [ `${PKG_PREFIX}/sbin/sasldblistusers | wc -l` -eq 0 ] ; then
+ rm ${SASLDB_NAME}
+ else
+ echo "WARNING: Users SASL passwords are in ${SASLDB_NAME}, keeping this file"
+ fi
+ fi
}
# This should really be uninstalled by Sendmail