51663a7c31
Change-Id: I9f95bac3f74827f0918f174fc0113736b92cbc0c Partially-implements: bp freezer-container
16 lines
362 B
Bash
Executable File
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
|