diff options
Diffstat (limited to 'docker/openvswitch/openvswitch-db-server/start.sh')
| -rwxr-xr-x | docker/openvswitch/openvswitch-db-server/start.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/openvswitch/openvswitch-db-server/start.sh b/docker/openvswitch/openvswitch-db-server/start.sh new file mode 100755 index 000000000..60347b2dc --- /dev/null +++ b/docker/openvswitch/openvswitch-db-server/start.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -o errexit + +# Loading common functions. +source /opt/kolla/kolla-common.sh + +mkdir -p "/run/openvswitch" +if [[ ! -e "/etc/openvswitch/conf.db" ]]; then + ovsdb-tool create "/etc/openvswitch/conf.db" +fi + +exec $CMD |
