blob: 8723bbae9301ba3d06bf576239456a0f0f17e57f [file] [log] [blame]
Tony Mackdc981852016-03-12 14:13:24 +00001#!/bin/bash
2sed -i "s/localhost:9200/elasticsearch:9200/g" /opt/${KIBANA_VERSION}/config/kibana.yml
3if [ "$KIBANA_SECURE" = "true" ] ; then
4 ln -s /etc/nginx/sites-available/kibana-secure /etc/nginx/sites-enabled/kibana
5 htpasswd -bc /etc/kibana/htpasswd ${KIBANA_USER} ${KIBANA_PASSWORD}
6else
7 ln -s /etc/nginx/sites-available/kibana /etc/nginx/sites-enabled/kibana
8fi
9sed -i "s/kibana:5601/$HOSTNAME:5601/g" /etc/nginx/sites-enabled/kibana
10/usr/bin/supervisord -c /etc/supervisor/conf.d/kibana.conf