Commit f3d2a711a1055e8cf28857ea496412f54b0530af
1 parent
fe785685
Exists in
colab-master
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
4 additions
and
2 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,6 +117,8 @@ if ! id colab; then | @@ -117,6 +117,8 @@ 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 | +mv /etc/colab/gunicorn.py.example /etc/colab/gunicorn.py | ||
121 | + | ||
120 | if [ ! -f /etc/colab/settings.py ]; then | 122 | if [ ! -f /etc/colab/settings.py ]; then |
121 | SECRET_KEY=$(openssl rand -hex 32) | 123 | SECRET_KEY=$(openssl rand -hex 32) |
122 | cat > /etc/colab/settings.py <<EOF | 124 | cat > /etc/colab/settings.py <<EOF |