aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/cyborg/cyborg-base/extend_start.sh
blob: 10a58c626be47ffc0a69ad1f796e33d98b5f3f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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