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