kolla/docker/dragonflow/dragonflow-base/extend_start.sh
caowei 3801d4b140 Add dragonflow container
Change-Id: I8ab47f96a86c524e14a2c65dd58f1f8fa54d0895
Partially-implements: blueprint dragonflow
2017-05-15 11:09:10 +08:00

13 lines
271 B
Bash

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