265f643295
Because kolla not have cyborg so should add this. Implements: blueprint add-cyborg Change-Id: I497e67e3a754fccfd2ef5a82f13ccfaf890a6fcd
16 lines
406 B
Bash
Executable File
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
|