From cdb36ab188ea14ae593f3a2f650540c11a201071 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 26 Sep 2012 02:24:03 -0500 Subject: testing/openvswitch: new aport --- testing/openvswitch/openvswitch.post-install | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testing/openvswitch/openvswitch.post-install (limited to 'testing/openvswitch/openvswitch.post-install') diff --git a/testing/openvswitch/openvswitch.post-install b/testing/openvswitch/openvswitch.post-install new file mode 100644 index 0000000000..2c3ea69370 --- /dev/null +++ b/testing/openvswitch/openvswitch.post-install @@ -0,0 +1,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 + -- cgit v1.2.3