Commit 98c86b51104ed5e51a8286baf0ed66fdc9ac9a84

Authored by Alexandre Barbosa
Committed by Rodrigo Siqueira de Melo
1 parent eee2e806

Fix gunicorn reference in colab.spec

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
colab/colab.spec
@@ -47,7 +47,7 @@ find %{buildvenv} -type d -empty -delete @@ -47,7 +47,7 @@ find %{buildvenv} -type d -empty -delete
47 47
48 # install config file 48 # install config file
49 install -d -m 0755 %{buildroot}/etc/colab 49 install -d -m 0755 %{buildroot}/etc/colab
50 -install -m 0644 misc/etc/colab/gunicorn.py %{buildroot}/etc/colab 50 +install -m 0644 misc/etc/colab/gunicorn.py %{buildroot}/etc/colab/gunicorn.py.example
51 51
52 # Create settings dirs 52 # Create settings dirs
53 install -d -m 0755 %{buildroot}/etc/colab/settings.d 53 install -d -m 0755 %{buildroot}/etc/colab/settings.d
@@ -106,7 +106,7 @@ rm -rf %{buildvenv} @@ -106,7 +106,7 @@ rm -rf %{buildvenv}
106 #/etc/colab # XXX: remove if doesnt break 106 #/etc/colab # XXX: remove if doesnt break
107 /etc/colab/settings.d 107 /etc/colab/settings.d
108 /etc/colab/plugins.d 108 /etc/colab/plugins.d
109 -/etc/colab/gunicorn.py 109 +/etc/colab/gunicorn.py.example
110 /lib/systemd/system/colab.service 110 /lib/systemd/system/colab.service
111 /lib/systemd/system/celeryd.service 111 /lib/systemd/system/celeryd.service
112 /lib/systemd/system/celerybeat.service 112 /lib/systemd/system/celerybeat.service
@@ -117,7 +117,7 @@ if ! id colab; then @@ -117,7 +117,7 @@ if ! id colab; then
117 useradd --system --gid colab --home-dir /usr/lib/colab --no-create-home colab 117 useradd --system --gid colab --home-dir /usr/lib/colab --no-create-home colab
118 fi 118 fi
119 119
120 -chown -R colab:colab /var/log/colab 120 +mv /etc/colab/gunicorn.py.example /etc/colab/gunicorn.py
121 121
122 if [ ! -f /etc/colab/settings.py ]; then 122 if [ ! -f /etc/colab/settings.py ]; then
123 SECRET_KEY=$(openssl rand -hex 32) 123 SECRET_KEY=$(openssl rand -hex 32)