diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2013-10-12 16:58:50 -0400 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2013-10-12 18:20:02 -0400 |
commit | 732c43fd8786fed550b033f47372a9225f9d047c (patch) | |
tree | 3aa256acf53831daa77c4ee1731971b8dfb6eaa4 /debian/mongodb-enterprise-unstable-server.postinst | |
parent | 96effe4d13852215eabcdb1eb33bd72cb285624d (diff) | |
download | mongo-732c43fd8786fed550b033f47372a9225f9d047c.tar.gz |
SERVER-7883 use getent to check user existence
Diffstat (limited to 'debian/mongodb-enterprise-unstable-server.postinst')
-rw-r--r-- | debian/mongodb-enterprise-unstable-server.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mongodb-enterprise-unstable-server.postinst b/debian/mongodb-enterprise-unstable-server.postinst index b9700a1232f..2914fb85631 100644 --- a/debian/mongodb-enterprise-unstable-server.postinst +++ b/debian/mongodb-enterprise-unstable-server.postinst @@ -21,7 +21,7 @@ set -e case "$1" in configure) # create a mongodb group and user - if ! grep -q mongodb /etc/passwd; then + if ! getent passwd mongodb >/dev/null 2>&1; then adduser --system --no-create-home mongodb addgroup --system mongodb adduser mongodb mongodb |