From 956f21df192c24cc5de908a20261b19f53de3a3a Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 7 Jun 2016 18:12:32 +1000 Subject: [PATCH] correct bash command so it does not fail --- templates/web.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1