aboutsummaryrefslogtreecommitdiff
path: root/docker/influxdb/extend_start.sh
blob: 42a3c4607bcb3088d2a8ed8126d5b8def809cdd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# Create log directory, with appropriate permissions
INFLUXDB_LOG_DIR=/var/log/kolla/influxdb

if [[ ! -d "${INFLUXDB_LOG_DIR}" ]]; then
    mkdir -p ${INFLUXDB_LOG_DIR}
fi
if [[ $(stat -c %a ${INFLUXDB_LOG_DIR}) != "755" ]]; then
    chmod 755 ${INFLUXDB_LOG_DIR}
fi