kolla/docker/influxdb/extend_start.sh
zhubingbing e89536405f Fix influxdb container
Add influxdb log directory

Closes-Bug: #1655001

Change-Id: I9661fe8e8138adf7f1f50f2f2864ee4683f956d9
2017-01-09 12:39:17 +00:00

12 lines
281 B
Bash

#!/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