aports/testing/openvswitch/openvswitch.post-upgrade
2012-09-26 02:24:03 -05:00

12 lines
302 B
Bash

#!/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