aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst')
-rw-r--r--bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst3
1 files changed, 2 insertions, 1 deletions
diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst
index b3b7db94..2623c283 100644
--- a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst
+++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst
@@ -32,11 +32,12 @@ set -e
case "$1" in
install|upgrade)
+ getent group ignite >/dev/null || groupadd -r ignite
if ! getent passwd ignite >/dev/null; then
# Adding system user: ignite.
adduser \
--system \
- --group \
+ --ingroup ignite \
--home /var/run/ignite-hadoop \
--gecos "Ignite User" \
--shell /bin/bash \