Merge "Revert "Config: Set default home to /var/lib/{user}""

This commit is contained in:
Zuul 2021-08-25 20:34:41 +00:00 committed by Gerrit Code Review
commit 6800d22137

View File

@ -22,7 +22,7 @@ ENV LANG en_US.UTF-8
{%- for name, user in users | dictsort() %}
{% if loop.first -%}RUN {% else %} && {% endif -%}
groupadd --force --gid {{ user.gid }} {{ user.group }} \
&& useradd -l -M --shell /usr/sbin/nologin --uid {{ user.uid }} --gid {{ user.gid }} --home-dir /var/lib/{{ name }} {{ name }}
&& useradd -l -M --shell /usr/sbin/nologin --uid {{ user.uid }} --gid {{ user.gid }} {{ name }}
{%- if not loop.last %} \{% endif -%}
{%- endfor %}