kolla/docker/panko/panko-base/extend_start.sh
Jeffrey Zhang 5ceecfd0a2 Fix panko log folder owner
Change-Id: I787d5754925f942d3d31cb4aed8ece4c084b7d6c
2017-02-05 17:33:04 +08:00

16 lines
361 B
Bash

#!/bin/bash
PANKO_LOG_DIR=/var/log/kolla/panko
if [[ ! -d "${PANKO_LOG_DIR}" ]]; then
mkdir -p ${PANKO_LOG_DIR}
fi
if [[ $(stat -c %U:%G ${PANKO_LOG_DIR}) != "panko:kolla" ]]; then
chown panko:kolla ${PANKO_LOG_DIR}
fi
if [[ $(stat -c %a ${PANKO_LOG_DIR}) != "755" ]]; then
chmod 755 ${PANKO_LOG_DIR}
fi
. /usr/local/bin/kolla_panko_extend_start