e89536405f
Add influxdb log directory Closes-Bug: #1655001 Change-Id: I9661fe8e8138adf7f1f50f2f2864ee4683f956d9
12 lines
281 B
Bash
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
|