Fix panko log folder owner

Change-Id: I787d5754925f942d3d31cb4aed8ece4c084b7d6c
This commit is contained in:
Jeffrey Zhang 2017-02-05 10:43:27 +08:00
parent 061c3f8371
commit 5ceecfd0a2

View File

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