ovs-monitor-ipsec: Don't reconfigure cert-based authentication as often.
[openvswitch] / debian / openvswitch-switch.postrm
index 19e8ebe4c8ec14755015c4a027c22d09ec37f163..d9113389a7210f57fe699b78541ae9440939de7b 100755 (executable)
@@ -21,16 +21,19 @@ set -e
 
 case "$1" in
     purge)
-       rm -f /etc/default/openvswitch-switch
-       ;;
+        rm -f /etc/openvswitch/conf.db
+        rm -f /etc/openvswitch/.conf.db.~lock~
+        rm -f /etc/default/openvswitch-switch
+        rm -f /var/log/openvswitch/* || true
+        ;;
 
     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-       ;;
+        ;;
 
     *)
         echo "postrm called with unknown argument \`$1'" >&2
         exit 1
-       ;;
+        ;;
 esac
 
 # dh_installdeb will replace this with shell code automatically