Files
fk-wazuh/wait-for-it.sh
T

16 lines
197 B
Bash
Executable File

#!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until curl -XGET $host:9200; do
>&2 echo "Elastic is unavailable - sleeping"
sleep 1
done
>&2 echo "Elastic is up - executing command"
exec $cmd