aboutsummaryrefslogtreecommitdiff
path: root/docker/telegraf/extend_start.sh
blob: 2830da1cb0420f5c860527ec493968a788d93bef (plain)
1
2
3
4
5
6
7
8
9
10
#!/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