Skip to content

Commit 150efda

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Avoid the use of --force in groupadd"
2 parents e4f019a + 6366dec commit 150efda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/base/Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV LANG en_US.UTF-8
2121
{# Specifics required such as homedir or shell are configured within the service specific image #}
2222
{%- for name, user in users | dictsort() %}
2323
{% if loop.first -%}RUN {% else %} && {% endif -%}
24-
groupadd --force --gid {{ user.gid }} {{ user.group }} \
24+
groupadd --gid {{ user.gid }} {{ user.group }} \
2525
&& useradd -l -M --shell /usr/sbin/nologin --uid {{ user.uid }} --gid {{ user.gid }} {{ name }}
2626
{%- if not loop.last %} \{% endif -%}
2727
{%- endfor %}

kolla/common/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@
760760
},
761761
'mongodb-user': { # unused user (mongodb dropped)
762762
'uid': 42432,
763-
'gid': 65534,
763+
'gid': 42432,
764764
},
765765
'murano-user': {
766766
'uid': 42433,

0 commit comments

Comments
 (0)