diff options
author | Kengo Seki <sekikn@apache.org> | 2017-06-08 21:13:25 -0400 |
---|---|---|
committer | Kengo Seki <sekikn@apache.org> | 2017-06-11 23:42:02 -0400 |
commit | 7cc3470d99488d985aa7c50c62ecf994121fdb05 (patch) | |
tree | 9730e09975f463b865dc99e5f1caf43819bc77f2 /bigtop-packages/src/deb/spark/spark-core.preinst | |
parent | 2bfcd0404d7651f03b2050b8d5e6d701fbd720ce (diff) |
BIGTOP-2802. Some packages don't create necessary groups on debian-based system if the users correspond to them already exist
Closes #234
Diffstat (limited to 'bigtop-packages/src/deb/spark/spark-core.preinst')
-rw-r--r-- | bigtop-packages/src/deb/spark/spark-core.preinst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bigtop-packages/src/deb/spark/spark-core.preinst b/bigtop-packages/src/deb/spark/spark-core.preinst index ea83e68e..d0b716f8 100644 --- a/bigtop-packages/src/deb/spark/spark-core.preinst +++ b/bigtop-packages/src/deb/spark/spark-core.preinst @@ -32,11 +32,12 @@ set -e case "$1" in install|upgrade) + getent group spark >/dev/null || groupadd -r spark if ! getent passwd spark >/dev/null; then # Adding system user: spark . adduser \ --system \ - --group \ + --ingroup spark \ --home /var/lib/spark \ --gecos "Spark" \ --shell /bin/false \ |