From 0b39910b4f32a3153dfcb25bb5c3d90956f53963 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Fri, 22 May 2015 07:50:44 +0100 Subject: [PATCH] Invert logic to avoid problems with exit status --- templates/web.ssl.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web.ssl.template.yml b/templates/web.ssl.template.yml index 3a7a4d5..807beff 100644 --- a/templates/web.ssl.template.yml +++ b/templates/web.ssl.template.yml @@ -3,7 +3,7 @@ run: cmd: # Generate strong Diffie-Hellman parameters - "mkdir -p /shared/ssl/" - - "[ ! -e /shared/ssl/dhparams.pem ] && openssl dhparam -out /shared/ssl/dhparams.pem 2048" + - "[ -e /shared/ssl/dhparams.pem ] || openssl dhparam -out /shared/ssl/dhparams.pem 2048" - replace: filename: "/etc/nginx/conf.d/discourse.conf" from: /server.+{/ -- 2.25.1