projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
943ce06
)
correct bash command so it does not fail
author
Sam
<sam.saffron@gmail.com>
Tue, 7 Jun 2016 08:12:32 +0000
(18:12 +1000)
committer
Sam
<sam.saffron@gmail.com>
Tue, 7 Jun 2016 08:12:32 +0000
(18:12 +1000)
templates/web.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/web.template.yml
b/templates/web.template.yml
index d355a49aa637eaa34b9e72291e145ba913ff39bf..f6aa060bdde3be5c21db2c1c3c46177fa819f14e 100644
(file)
--- a/
templates/web.template.yml
+++ b/
templates/web.template.yml
@@
-118,7
+118,7
@@
run:
- "cp $home/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf"
- "rm /etc/nginx/sites-enabled/default"
- "mkdir -p /var/nginx/cache"
- - '
[ ! -z "$COMPRESS_BROTLI"] && sed -i "s/# brotli/brotli/" /etc/nginx/conf.d/discourse.conf
'
+ - '
/bin/bash -c ''([ ! -z "$COMPRESS_BROTLI"] && sed -i "s/# brotli/brotli/" /etc/nginx/conf.d/discourse.conf) || exit 0''
'
- replace:
filename: /etc/nginx/nginx.conf