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