From f479c2f42b01cbb6fb0a60448f314021b1c3c9df Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 17 Mar 2010 11:02:41 -0700 Subject: [PATCH] debian: Upgrade database before starting ovsdb-server. The XenServer init script has been upgrading the database before starting ovsdb-server for some time now, but the corresponding change was never made to the Debian init script. This commit fixes that. --- debian/openvswitch-switch.init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 3a7f2924..7ce9a645 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -210,6 +210,11 @@ case "$1" in ovsdb-tool -vANY:console:emer \ create /etc/openvswitch-switch/conf \ /usr/share/openvswitch/vswitch.ovsschema + else + # Upgrade or downgrade schema and compact database. + ovsdb-tool -vANY:console:emer \ + convert /etc/openvswitch-switch/conf \ + /usr/share/openvswitch/vswitch.ovsschema fi if test "$ENABLE_MONITOR" = y; then -- 2.30.2