mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-29 02:53:41 +00:00
Port config behavior from latest version
This commit is contained in:
committed by
Manuel Gutierrez
parent
8ebd2b2609
commit
5a0865da0b
@@ -6,7 +6,9 @@ wazuh_port="${API_PORT:-55000}"
|
||||
api_user="${API_USER:-foo}"
|
||||
api_password="${API_PASS:-bar}"
|
||||
|
||||
kibana_config_file="/usr/share/kibana/plugins/wazuh/wazuh.yml"
|
||||
kibana_config_file="/usr/share/kibana/optimize/wazuh/config/wazuh.yml"
|
||||
mkdir -p /usr/share/kibana/optimize/wazuh/config/
|
||||
touch $kibana_config_file
|
||||
|
||||
declare -A CONFIG_MAP=(
|
||||
[pattern]=$PATTERN
|
||||
@@ -53,7 +55,8 @@ grep -q 1513629884013 $kibana_config_file
|
||||
_config_exists=$?
|
||||
|
||||
if [[ "x$CONFIG_CODE" != "x200" && $_config_exists -ne 0 ]]; then
|
||||
cat << EOF >> $kibana_config_file
|
||||
cat << EOF > $kibana_config_file
|
||||
hosts:
|
||||
- 1513629884013:
|
||||
url: $wazuh_url
|
||||
port: $wazuh_port
|
||||
|
||||
Reference in New Issue
Block a user