15 lines
403 B
Bash
Executable File
15 lines
403 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Cleanly kill supervisor when container is stopped
|
|
trap 'kill $(jobs -p)' EXIT
|
|
|
|
if [ "$ELASTICSEARCH_HOSTNAME" != "" ]; then
|
|
sed -i -r "s/^elasticsearch_url: .+/elasticsearch_url: \"http:\/\/${ELASTICSEARCH_HOSTNAME}\/\"/" /opt/kibana/config/kibana.yml
|
|
fi
|
|
|
|
if [ "$KIBANA_PORT" != "" ]; then
|
|
sed -i -r "s/^port: .+/port: $KIBANA_PORT/" /opt/kibana/config/kibana.yml
|
|
fi
|
|
|
|
supervisord
|