From: Ben Pfaff Date: Wed, 17 Mar 2010 18:02:41 +0000 (-0700) Subject: debian: Upgrade database before starting ovsdb-server. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f479c2f42b01cbb6fb0a60448f314021b1c3c9df;p=sliver-openvswitch.git 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. --- diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 3a7f29244..7ce9a6450 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