kolla/docker/openvswitch/openvswitch-db-server/extend_start.sh
Jeffrey Zhang f62b16f8a4 Move openvswitch db file into docker volume
openvswitch db file is created in /etc/openvswitch/conf.db. It will be
lost during upgrade openvswitch_db container.

This patch moves the db file into /var/lib/openvswitch folder, which
located in docker volume.

Change-Id: I73604fddacd21655590b9e66ee2805014795b9f1
Closes-Bug: #1649290
2016-12-15 16:42:09 +00:00

7 lines
148 B
Bash

#!/bin/bash
mkdir -p "/run/openvswitch"
if [[ ! -e "/var/lib/openvswitch/conf.db" ]]; then
ovsdb-tool create "/var/lib/openvswitch/conf.db"
fi