kolla/docker/kuryr/kuryr-base/extend_start.sh
Eduardo Gonzalez e759d4d539 Fix kuryr docker images
Kuryr need ovs and bridge packages to
create local bridges and ports for containers.
Creates kuryr user and adds permissions
Remove useless bootstrap tasks

Closes-Bug: #1697475

Change-Id: I4c08a21df263fdefe1fe991cb7ad41cfee65019d
2017-06-13 13:44:05 +02:00

16 lines
360 B
Bash

#!/bin/bash
KURYR_LOG_DIR=/var/log/kolla/kuryr
KURYR_DOCKER_PLUGINS_DIR=/usr/lib/docker/plugins/kuryr
if [[ ! -d "${KURYR_LOG_DIR}" ]]; then
mkdir -p ${KURYR_LOG_DIR}
fi
if [[ $(stat -c %a ${KURYR_LOG_DIR}) != "755" ]]; then
chmod 755 ${KURYR_LOG_DIR}
fi
if [[ ! -d "${KURYR_DOCKER_PLUGINS_DIR}" ]]; then
mkdir -p ${KURYR_DOCKER_PLUGINS_DIR}
fi