kolla-ansible/docker/ceilometer/ceilometer-base/extend_start.sh
Eduardo Gonzalez 8e98e5f15e Change source with dot at extend_start files
Is a best practice in Unix/Linux scripts to use dots
instead of source command.
Using dots will avoid issues with non BASH shells

TrivialFix
Change-Id: Ie6480a1954f853f79faffa093452715ebd9f7d90
Signed-off-by: Eduardo Gonzalez <dabarren@gmail.com>
2016-08-29 07:29:16 +02:00

11 lines
258 B
Bash

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