ft_transcendence/logs/kibana/bootstrap.sh
2025-11-14 18:27:40 +01:00

15 lines
302 B
Bash
Executable file

#!/bin/sh
kibana_setup() {
set -xe
until curl -s -f "localhost:5601/api/status"; do
sleep 2
done
curl -v -X POST "localhost:5601/api/saved_objects/_import?overwrite=true" \
-H "kbn-xsrf: true" \
--form file='@/setup/export.ndjson'
exit 0
}
kibana_setup &
exec /usr/local/bin/kibana-docker