cf2b2b55b6
Follow Zaqar installation documentation [1] [1] https://docs.openstack.org/zaqar/latest/install/ Change-Id: Ic356fb81c19ebbc78aa3c7e871c4946d1f712a45 Implements: blueprint ansible-zaqar
16 lines
352 B
Bash
16 lines
352 B
Bash
#!/bin/bash
|
|
|
|
# Create log dir for Zaqar logs
|
|
LOG_DIR="/var/log/kolla/zaqar"
|
|
if [[ ! -d "${LOG_DIR}" ]]; then
|
|
mkdir -p ${LOG_DIR}
|
|
fi
|
|
if [[ $(stat -c %U:%G ${LOG_DIR}) != "zaqar:kolla" ]]; then
|
|
chown zaqar:kolla ${LOG_DIR}
|
|
fi
|
|
if [[ $(stat -c %a ${LOG_DIR}) != "755" ]]; then
|
|
chmod 755 ${LOG_DIR}
|
|
fi
|
|
|
|
. /usr/local/bin/kolla_zaqar_extend_start
|