kolla-ansible/docker/telegraf/extend_start.sh
zhubingbing 388eee2eab add telegraf log directory /var/log/kolla/telegraf
Closes-Bug: #1622609

Change-Id: I89d4059e2c31b7f1737c147479cdc3c36b06fa69
2016-09-13 03:22:18 +00:00

11 lines
230 B
Bash

#!/bin/bash
TELEGRAF_LOG_DIR="/var/log/kolla/telegraf"
if [[ ! -d "${TELEGRAF_LOG_DIR}" ]]; then
mkdir -p ${TELEGRAF_LOG_DIR}
fi
if [[ $(stat -c %a ${TELEGRAF_LOG_DIR}) != "755" ]]; then
chmod 755 ${TELEGRAF_LOG_DIR}
fi