mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 21:13:30 +00:00
change hostname from apply ism policy
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
SERVER=`hostname`
|
||||||
if [[ -n "$INDEXER_PASSWORD" ]]; then
|
if [[ -n "$INDEXER_PASSWORD" ]]; then
|
||||||
until [[ `curl -XGET https://0.0.0.0:9200/_cat/indices -u admin:SecretPassword -k -s | grep .opendistro_security | wc -l` -eq 1 ]]
|
until [[ `curl -XGET https://$SERVER:9200/_cat/indices -u admin:SecretPassword -k -s | grep .opendistro_security | wc -l` -eq 1 ]]
|
||||||
do
|
do
|
||||||
echo "Wazuh indexer Security is not initiaized";
|
echo "Wazuh indexer Security is not initiaized";
|
||||||
sleep 30
|
sleep 30
|
||||||
done
|
done
|
||||||
bash /usr/share/wazuh-indexer/bin/indexer-ism-init.sh -i 127.0.0.1 -p $INDEXER_PASSWORD
|
bash /usr/share/wazuh-indexer/bin/indexer-ism-init.sh -p $INDEXER_PASSWORD -i $SERVER
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user