correct bash command so it does not fail
authorSam <sam.saffron@gmail.com>
Tue, 7 Jun 2016 08:12:32 +0000 (18:12 +1000)
committerSam <sam.saffron@gmail.com>
Tue, 7 Jun 2016 08:12:32 +0000 (18:12 +1000)
templates/web.template.yml

index d355a49aa637eaa34b9e72291e145ba913ff39bf..f6aa060bdde3be5c21db2c1c3c46177fa819f14e 100644 (file)
@@ -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