kolla/docker/cyborg/cyborg-base/extend_start.sh
Bai Yongjun 265f643295 Add cyborg to kolla
Because kolla not have cyborg so should add this.

Implements: blueprint add-cyborg

Change-Id: I497e67e3a754fccfd2ef5a82f13ccfaf890a6fcd
2019-03-27 16:19:13 +00:00

16 lines
406 B
Bash
Executable File

#!/bin/bash
# Create log dir for Cyborg logs
CYBORG_LOG_DIR="/var/log/kolla/cyborg"
if [[ ! -d "${CYBORG_LOG_DIR}" ]]; then
mkdir -p ${CYBORG_LOG_DIR}
fi
if [[ $(stat -c %U:%G ${CYBORG_LOG_DIR}) != "cyborg:kolla" ]]; then
chown cyborg:kolla ${CYBORG_LOG_DIR}
fi
if [[ $(stat -c %a ${CYBORG_LOG_DIR}) != "755" ]]; then
chmod 755 ${CYBORG_LOG_DIR}
fi
. /usr/local/bin/kolla_cyborg_extend_start