mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-04 14:03:24 +00:00
Merge pull request #494 from krzee/master
In bash if already tests exit status is 0 or not
This commit is contained in:
@@ -48,10 +48,7 @@ done
|
|||||||
|
|
||||||
CONFIG_CODE=$(curl ${auth} -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/_doc/1513629884013)
|
CONFIG_CODE=$(curl ${auth} -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/_doc/1513629884013)
|
||||||
|
|
||||||
grep -q 1513629884013 $kibana_config_file
|
if [[ "x$CONFIG_CODE" != "x200" ]] && ! grep -q 1513629884013 $kibana_config_file ; then
|
||||||
_config_exists=$?
|
|
||||||
|
|
||||||
if [[ "x$CONFIG_CODE" != "x200" && $_config_exists -ne 0 ]]; then
|
|
||||||
cat << EOF >> $kibana_config_file
|
cat << EOF >> $kibana_config_file
|
||||||
hosts:
|
hosts:
|
||||||
- 1513629884013:
|
- 1513629884013:
|
||||||
|
|||||||
Reference in New Issue
Block a user