summaryrefslogtreecommitdiff
path: root/docker/monasca/monasca-base/extend_start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/monasca/monasca-base/extend_start.sh')
-rw-r--r--docker/monasca/monasca-base/extend_start.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/docker/monasca/monasca-base/extend_start.sh b/docker/monasca/monasca-base/extend_start.sh
index c224563..77e835d 100644
--- a/docker/monasca/monasca-base/extend_start.sh
+++ b/docker/monasca/monasca-base/extend_start.sh
@@ -1,10 +1,15 @@
1#!/bin/bash 1#!/bin/bash
2 2
3if [[ ! -d "/var/log/kolla/monasca" ]]; then 3# Create log directory, with appropriate permissions
4 mkdir -p /var/log/kolla/monasca 4MONASCA_LOG_DIR="/var/log/kolla/monasca"
5if [[ ! -d "$MONASCA_LOG_DIR" ]]; then
6 mkdir -p $MONASCA_LOG_DIR
5fi 7fi
6if [[ $(stat -c %a /var/log/kolla/monasca) != "755" ]]; then 8if [[ $(stat -c %U:%G ${MONASCA_LOG_DIR}) != "monasca:kolla" ]]; then
7 chmod 755 /var/log/kolla/monasca 9 chown monasca:kolla ${MONASCA_LOG_DIR}
10fi
11if [[ $(stat -c %a ${MONASCA_LOG_DIR}) != "755" ]]; then
12 chmod 755 ${MONASCA_LOG_DIR}
8fi 13fi
9 14
10. /usr/local/bin/kolla_monasca_extend_start 15. /usr/local/bin/kolla_monasca_extend_start