From: Sam Date: Tue, 7 Jun 2016 08:12:32 +0000 (+1000) Subject: correct bash command so it does not fail X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=956f21df192c24cc5de908a20261b19f53de3a3a;p=discourse_docker.git correct bash command so it does not fail --- diff --git a/templates/web.template.yml b/templates/web.template.yml index d355a49..f6aa060 100644 --- 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