kolla-ansible/docker/magnum/magnum-base/extend_start.sh
Éric Lemoine d935f2da68 Make Heka collect Magnum logs
Partially implements: blueprint heka
Change-Id: I91a977c6a3632c570f7a6054c8de3f5e3cb6932c
2016-02-19 21:56:10 +00:00

9 lines
194 B
Bash

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