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