diff options
author | Wen Heping <wen@FreeBSD.org> | 2009-11-19 07:09:00 +0000 |
---|---|---|
committer | Wen Heping <wen@FreeBSD.org> | 2009-11-19 07:09:00 +0000 |
commit | 51ed5eda724c602e8c1e369797772f9f31616f54 (patch) | |
tree | 5499a387dcbae8efb9481635560dac08ad2fe9a0 /databases/mongodb-devel/pkg-deinstall | |
parent | f068a3c9cb5e81f7ae31f24ca2743bd26626fe2c (diff) | |
download | ports-51ed5eda724c602e8c1e369797772f9f31616f54.tar.gz ports-51ed5eda724c602e8c1e369797772f9f31616f54.zip |
Notes
Diffstat (limited to 'databases/mongodb-devel/pkg-deinstall')
-rw-r--r-- | databases/mongodb-devel/pkg-deinstall | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/mongodb-devel/pkg-deinstall b/databases/mongodb-devel/pkg-deinstall new file mode 100644 index 000000000000..1c7a5bf2805d --- /dev/null +++ b/databases/mongodb-devel/pkg-deinstall @@ -0,0 +1,15 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +USER=mongodb + +if pw usershow "${USER}" 2>/dev/null 1>&2; then + echo "To delete mongodb user permanently, use 'pw userdel ${USER}'" +fi + +exit 0 |