Merge "Deprecating stats.conf in favor of static type:"
diff --git a/nginx/meta/sphinx.yml b/nginx/meta/sphinx.yml
index 20d1056..19cf542 100644
--- a/nginx/meta/sphinx.yml
+++ b/nginx/meta/sphinx.yml
@@ -7,7 +7,7 @@
name: Server
param:
version:
- value: "{{ salt['cmd.shell']('nginx -v 2>/dev/null || echo "unknown"', python_shell=True)|replace("nginx version: ", '') }}"
+ value: "{{ salt['cmd.shell']('which nginx >/dev/null && nginx -v || echo "Not installed"', python_shell=True)|replace("nginx version: ", '') }}"
bind_host:
name: Bind host
value: {{ server.bind.address }}