kolla-ansible/docker/freezer/freezer-base/extend_start.sh
caowei 51663a7c31 Add freezer container
Change-Id: I9f95bac3f74827f0918f174fc0113736b92cbc0c
Partially-implements: bp freezer-container
2016-11-06 11:11:51 +08:00

16 lines
362 B
Bash
Executable File

#!/bin/bash
# Create log dir for freezer logs
LOG_DIR="/var/log/kolla/freezer"
if [[ ! -d "${LOG_DIR}" ]]; then
mkdir -p ${LOG_DIR}
fi
if [[ $(stat -c %U:%G ${LOG_DIR}) != "freezer:kolla" ]]; then
chown freezer:kolla ${LOG_DIR}
fi
if [[ $(stat -c %a ${LOG_DIR}) != "755" ]]; then
chmod 755 ${LOG_DIR}
fi
. /usr/local/bin/kolla_freezer_extend_start