kolla-ansible/docker/magnum/magnum-base/extend_start.sh
Éric Lemoine feca4a3f4a Remove duplicate code in magnum extend_start.sh
Change-Id: Iaa7049834be784c7410970fb9f0b25086891211d
Partial-Bug: #1546944
2016-02-24 12:04:03 +01:00

11 lines
243 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
source /usr/local/bin/kolla_magnum_extend_start