diff options
author | William Pitcock <nenolod@dereferenced.org> | 2012-09-26 02:24:03 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2012-09-26 02:24:03 -0500 |
commit | cdb36ab188ea14ae593f3a2f650540c11a201071 (patch) | |
tree | b30620c190598f1b45207180b33edb139b1f2072 /testing/openvswitch/openvswitch.post-upgrade | |
parent | 5bcbfc3c6506772da405c833a726894ce0848705 (diff) | |
download | aports-cdb36ab188ea14ae593f3a2f650540c11a201071.tar.bz2 aports-cdb36ab188ea14ae593f3a2f650540c11a201071.tar.xz |
testing/openvswitch: new aport
Diffstat (limited to 'testing/openvswitch/openvswitch.post-upgrade')
-rw-r--r-- | testing/openvswitch/openvswitch.post-upgrade | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/openvswitch/openvswitch.post-upgrade b/testing/openvswitch/openvswitch.post-upgrade new file mode 100644 index 000000000..2c3ea6937 --- /dev/null +++ b/testing/openvswitch/openvswitch.post-upgrade @@ -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 + |