Commit 899805b64b1837275b87e167a02809f582c24e18
Committed by
Rodrigo Siqueira de Melo
1 parent
2f4b3020
Exists in
master
and in
79 other branches
If nginx is available serve assets using it
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
colab/colab.spec
... | ... | @@ -180,9 +180,10 @@ fi |
180 | 180 | mkdir -p /var/lib/colab-assets |
181 | 181 | chown colab:colab /var/lib/colab-assets |
182 | 182 | |
183 | -mkdir -p /usr/share/nginx/ | |
184 | - | |
185 | -ln -s /var/lib/colab-assets /usr/share/nginx/colab | |
183 | +# If nginx is available serve assets using it | |
184 | +if [ -d /usr/share/nginx ]; then | |
185 | + ln -s /var/lib/colab-assets /usr/share/nginx/colab | |
186 | +fi | |
186 | 187 | |
187 | 188 | yes yes | colab-admin collectstatic |
188 | 189 | ... | ... |