Tony Mack | dc98185 | 2016-03-12 14:13:24 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | sed -i "s/localhost:9200/elasticsearch:9200/g" /opt/${KIBANA_VERSION}/config/kibana.yml |
| 3 | if [ "$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} |
| 6 | else |
| 7 | ln -s /etc/nginx/sites-available/kibana /etc/nginx/sites-enabled/kibana |
| 8 | fi |
| 9 | sed -i "s/kibana:5601/$HOSTNAME:5601/g" /etc/nginx/sites-enabled/kibana |
| 10 | /usr/bin/supervisord -c /etc/supervisor/conf.d/kibana.conf |