diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-04-06 20:43:22 -0700 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-04-06 20:43:22 -0700 |
commit | 6d51672d8d9b613c69134d918ef01194e227e898 (patch) | |
tree | 9ddc32507fe4dc2194d421e6902874223507f051 /pkg/docker | |
parent | 886aa17e791d2b75ac903389f0300edeaffda777 (diff) | |
download | unit-6d51672d8d9b613c69134d918ef01194e227e898.tar.gz unit-6d51672d8d9b613c69134d918ef01194e227e898.tar.bz2 |
Packages: use groupadd/useradd on Debian-based operating systems.
addgroup/adduser will no longer be installed by default in the
"minbase". Also, moving to lower-level utilities saves us one runtime
dependency.
Diffstat (limited to 'pkg/docker')
-rw-r--r-- | pkg/docker/template.Dockerfile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile index 3e71d7a3..4ff6ee05 100644 --- a/pkg/docker/template.Dockerfile +++ b/pkg/docker/template.Dockerfile @@ -58,14 +58,13 @@ RUN set -ex \ && @@RUN@@ \ && mkdir -p /var/lib/unit/ \ && mkdir /docker-entrypoint.d/ \ - && addgroup --system unit \ - && adduser \ + && groupadd --system unit \ + && useradd \ --system \ - --disabled-login \ - --ingroup unit \ + --gid unit \ --no-create-home \ --home /nonexistent \ - --gecos "unit user" \ + --comment "unit user" \ --shell /bin/false \ unit \ && apt-get update \ |