summaryrefslogtreecommitdiffstats
path: root/testing/openvswitch/openvswitch.post-install
blob: 2c3ea69370c98ea10c779452e8fd7338d699f877 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

db="/etc/openvswitch/conf.db"
if [ -e "$db" ]; then
	echo "Trying schema migration for $db..."
	ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema"
else
	echo "Creating new Open vSwitch database $db..."
	ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema"
fi