kolla/docker/ovn/ovn-base/extend_start.sh
Michal Nasiadka ce92481259 ovn-base: Create /run/ovn in extend_start.sh
OVN 2.12 packages are not creating /run/ovn directory,
which is the default socket/pidfile path for ovn services.

Change-Id: I9cf8c9a4fafeab00f76ee70a123b9a841aa77512
2019-12-06 15:38:06 +00:00

12 lines
270 B
Bash

#!/bin/bash
if [[ ! -d "/run/ovn" ]]; then
mkdir -p /run/ovn
fi
if [[ ! -d "/var/log/kolla/openvswitch" ]]; then
mkdir -p /var/log/kolla/openvswitch
fi
if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then
chmod 755 /var/log/kolla/openvswitch
fi