aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb/mongodb.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/mongodb/mongodb.pre-install')
-rw-r--r--community/mongodb/mongodb.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/community/mongodb/mongodb.pre-install b/community/mongodb/mongodb.pre-install
new file mode 100644
index 0000000000..1ed56eb7f4
--- /dev/null
+++ b/community/mongodb/mongodb.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S mongodb 2>/dev/null
+adduser -S -D -h /var/lib/mongodb -s /sbin/nologin -G mongodb -g mongodb mongodb 2>/dev/null
+
+exit 0