Merge pull request #30 from salt-formulas/chain

Fix creation of all chain file
diff --git a/nginx/server/sites.sls b/nginx/server/sites.sls
index aa87142..d942fdd 100644
--- a/nginx/server/sites.sls
+++ b/nginx/server/sites.sls
@@ -75,8 +75,9 @@
 {% endif %}
 
 nginx_init_{{ site.host.name }}_tls:
-  cmd.wait:
+  cmd.run:
   - name: "cat {{ cert_file }} {{ ca_file }} > {{ chain_file }}"
+  - creates: {{ chain_file }}
   - watch_in:
     - service: nginx_service