summaryrefslogtreecommitdiff
path: root/docker/monasca/monasca-base/extend_start.sh
blob: 77e835d44738d7a1329fa17ae69b8fb88cf776a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Create log directory, with appropriate permissions
MONASCA_LOG_DIR="/var/log/kolla/monasca"
if [[ ! -d "$MONASCA_LOG_DIR" ]]; then
    mkdir -p $MONASCA_LOG_DIR
fi
if [[ $(stat -c %U:%G ${MONASCA_LOG_DIR}) != "monasca:kolla" ]]; then
    chown monasca:kolla ${MONASCA_LOG_DIR}
fi
if [[ $(stat -c %a ${MONASCA_LOG_DIR}) != "755" ]]; then
    chmod 755 ${MONASCA_LOG_DIR}
fi

. /usr/local/bin/kolla_monasca_extend_start