kolla/docker/kibana/extend_start.sh
Paul Bourke 72945b0926 Remove path work around for kibana
Kibana 5 shares a common path across distros now, so this workaround is
no longer required.

Change-Id: Ib922bb4b44a31ae41dcc405d5bdcc37b4011cfa5
2018-11-05 13:01:48 +00:00

11 lines
245 B
Bash

#!/bin/bash
KIBANA_LOG_DIR="/var/log/kolla/kibana"
if [[ ! -d "${KIBANA_LOG_DIR}" ]]; then
mkdir -p "${KIBANA_LOG_DIR}"
fi
if [[ $(stat -c %U:%G "${KIBANA_LOG_DIR}") != "kibana:kolla" ]]; then
chown kibana:kolla "${KIBANA_LOG_DIR}"
fi