From b1e0f9b35e0b9d3a1e300901192aa615a3a1b802 Mon Sep 17 00:00:00 2001 From: Manuel Gutierrez <1380243+xr09@users.noreply.github.com> Date: Thu, 20 Aug 2020 19:02:04 +0200 Subject: [PATCH] Move auth --- kibana-opendistro/config/wazuh_app_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana-opendistro/config/wazuh_app_config.sh b/kibana-opendistro/config/wazuh_app_config.sh index 6d9f05eb..ec16a336 100644 --- a/kibana-opendistro/config/wazuh_app_config.sh +++ b/kibana-opendistro/config/wazuh_app_config.sh @@ -48,7 +48,7 @@ done # remove default API entry (new in 3.11.0_7.5.1) sed -ie '/- default:/,+4d' $kibana_config_file -CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/_doc/1513629884013 ${auth}) +CONFIG_CODE=$(curl ${auth} -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/_doc/1513629884013) grep -q 1513629884013 $kibana_config_file _config_exists=$?