summaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'security/cyrus-sasl/pkg-deinstall')
-rw-r--r--security/cyrus-sasl/pkg-deinstall8
1 files changed, 8 insertions, 0 deletions
diff --git a/security/cyrus-sasl/pkg-deinstall b/security/cyrus-sasl/pkg-deinstall
index fe99777..87f8409 100644
--- a/security/cyrus-sasl/pkg-deinstall
+++ b/security/cyrus-sasl/pkg-deinstall
@@ -24,6 +24,13 @@ delete_sasldb() {
fi
}
+delete_user() {
+ if pw usershow cyrus 2>/dev/null 1>&2; then
+ echo "To delete Cyrus user permanently, use 'pw userdel cyrus'"
+ fi
+
+}
+
# This should really be uninstalled by Sendmail
sendmail_conf() {
@@ -42,6 +49,7 @@ case $2 in
sendmail_conf
;;
POST-DEINSTALL)
+ delete_user
;;
esac
OpenPOWER on IntegriCloud