aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvswitch/openvswitch.post-install
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-09-26 02:24:03 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2012-09-26 02:24:03 -0500
commitcdb36ab188ea14ae593f3a2f650540c11a201071 (patch)
treeb30620c190598f1b45207180b33edb139b1f2072 /testing/openvswitch/openvswitch.post-install
parent5bcbfc3c6506772da405c833a726894ce0848705 (diff)
downloadaports-cdb36ab188ea14ae593f3a2f650540c11a201071.tar.bz2
aports-cdb36ab188ea14ae593f3a2f650540c11a201071.tar.xz
testing/openvswitch: new aport
Diffstat (limited to 'testing/openvswitch/openvswitch.post-install')
-rw-r--r--testing/openvswitch/openvswitch.post-install11
1 files changed, 11 insertions, 0 deletions
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
+