Commit ac38357f20521c6101defe0b551bce0f04d40e89
1 parent
79ca9138
Exists in
master
and in
54 other branches
User and group Colab created on %pre
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Antonio Terceiro <terceiro@softwarelivre.org> Signed-off-by: Athos Ribeiro <athoscribeiro@gmail.com> Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
7 additions
and
4 deletions
Show diff stats
colab/colab.spec
... | ... | @@ -111,11 +111,14 @@ rm -rf %{buildvenv} |
111 | 111 | /lib/systemd/system/celeryd.service |
112 | 112 | /lib/systemd/system/celerybeat.service |
113 | 113 | |
114 | + | |
115 | +%pre | |
116 | + | |
117 | +getent group colab > /dev/null || groupadd --system colab | |
118 | +getent passwd colab > /dev/null || useradd --system --user-group colab --home-dir /usr/lib/colab --no-create-home colab | |
119 | + | |
120 | + | |
114 | 121 | %post |
115 | -groupadd colab || true | |
116 | -if ! id colab; then | |
117 | - useradd --system --gid colab --home-dir /usr/lib/colab --no-create-home colab | |
118 | -fi | |
119 | 122 | |
120 | 123 | mv /etc/colab/gunicorn.py.example /etc/colab/gunicorn.py |
121 | 124 | ... | ... |