X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.init;h=7ce9a64508ebbbfe7736669b45415255665c1dc3;hb=17d18afbfd65619e830d551cb002441519cde059;hp=3a7f2924406dfeba0b887e909f53fb8cd18fe19b;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch 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