kolla/docker/collectd/extend_start.sh
zhubingbing 9ed49df4b4 fix collectd dockerfile
* remove sudoers file
* change extend_start.sh

Closes-Bug: #1628806

Change-Id: I80d3d3a677c735892e7be544e26ce001bb73c2cd
2016-11-07 08:25:17 +00:00

9 lines
202 B
Bash

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