diff options
-rw-r--r-- | debian/mongodb-enterprise-unstable-server.postinst | 2 | ||||
-rw-r--r-- | debian/mongodb-org-unstable-server.postinst | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/debian/mongodb-org-unstable-server.postinst b/debian/mongodb-org-unstable-server.postinst index b9700a1232f..2914fb85631 100644 --- a/debian/mongodb-org-unstable-server.postinst +++ b/debian/mongodb-org-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 |