Invert logic to avoid problems with exit status
authorJamie Nguyen <j@jamielinux.com>
Fri, 22 May 2015 06:50:44 +0000 (07:50 +0100)
committerJamie Nguyen <j@jamielinux.com>
Fri, 22 May 2015 06:50:44 +0000 (07:50 +0100)
templates/web.ssl.template.yml

index 3a7a4d59b56b79c57778ae4ece7580c6e54037a2..807beff5780f86eba6a2c6f430ffa43a29b8b25c 100644 (file)
@@ -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.+{/