Create config file from scratch when not a migration

This commit is contained in:
Manuel Gutierrez 2020-03-25 14:10:24 +01:00
parent 14f0d6d622
commit af5db1efac

View File

@ -55,7 +55,8 @@ grep -q 1513629884013 $kibana_config_file
_config_exists=$? _config_exists=$?
if [[ "x$CONFIG_CODE" != "x200" && $_config_exists -ne 0 ]]; then if [[ "x$CONFIG_CODE" != "x200" && $_config_exists -ne 0 ]]; then
cat << EOF >> $kibana_config_file cat << EOF > $kibana_config_file
hosts:
- 1513629884013: - 1513629884013:
url: $wazuh_url url: $wazuh_url
port: $wazuh_port port: $wazuh_port