kolla/docker/octavia/octavia-base/extend_start.sh
Jeffrey Zhang 8105f504d3 Fix octavia images
* Add extend start script in octavia
* Add octavia user into kolla group

Change-Id: I876e06795b04f676a0cfa67915ca65caec9e33e3
2016-12-05 10:33:16 +08:00

15 lines
283 B
Bash

#!/bin/bash
set -o errexit
OCTAVIA_LOG_DIR=/var/log/kolla/octavia
if [[ ! -d "${OCTAVIA_LOG_DIR}" ]]; then
mkdir -p ${OCTAVIA_LOG_DIR}
fi
if [[ $(stat -c %a ${OCTAVIA_LOG_DIR}) != "755" ]]; then
chmod 755 ${OCTAVIA_LOG_DIR}
fi
. /usr/local/bin/kolla_octavia_extend_start