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=$?