File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,16 @@ BANNER
25
25
fi
26
26
27
27
if ! getent group unit > /dev/null; then
28
- addgroup --system unit > /dev/null
28
+ groupadd --system unit > /dev/null
29
29
fi
30
30
31
31
if ! getent passwd unit > /dev/null; then
32
- adduser \
32
+ useradd \
33
33
--system \
34
- --disabled-login \
35
- --ingroup unit \
34
+ --gid unit \
36
35
--no-create-home \
37
36
--home /nonexistent \
38
- --gecos " unit user" \
37
+ --comment " unit user" \
39
38
--shell /bin/false \
40
39
unit > /dev/null
41
40
fi
Original file line number Diff line number Diff line change @@ -54,14 +54,13 @@ RUN set -ex \
54
54
&& @@RUN@@ \
55
55
&& mkdir -p /var/lib/unit/ \
56
56
&& mkdir /docker-entrypoint.d/ \
57
- && addgroup --system unit \
58
- && adduser \
57
+ && groupadd --system unit \
58
+ && useradd \
59
59
--system \
60
- --disabled-login \
61
- --ingroup unit \
60
+ --gid unit \
62
61
--no-create-home \
63
62
--home /nonexistent \
64
- --gecos "unit user" \
63
+ --comment "unit user" \
65
64
--shell /bin/false \
66
65
unit \
67
66
&& apt-get update \
You can’t perform that action at this time.
0 commit comments