From eee24a861c1a2240b9a58f92375991ea087e427e Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 2 Aug 2013 15:47:01 +0200 Subject: [PATCH] Correctly cleans /etc/neutron --- debian/neutron-common.postrm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/neutron-common.postrm b/debian/neutron-common.postrm index 0ab96f591..16ac79a9d 100644 --- a/debian/neutron-common.postrm +++ b/debian/neutron-common.postrm @@ -3,6 +3,7 @@ set -e if [ "${1}" = "purge" ] ; then + # Purge db on purge if [ -f /usr/share/debconf/confmodule ] ; then . /usr/share/debconf/confmodule db_get neutron/configure_db @@ -20,9 +21,12 @@ if [ "${1}" = "purge" ] ; then fi fi - rm -rf /etc/default/neutron - rm -rf /etc/neutron/api-paste.ini /etc/neutron/neutron.conf - [ -d /etc/neutron ] && rmdir --ignore-fail-on-non-empty /etc/neutron + # Clean /etc/neutron on purge + rm -f /etc/default/neutron /etc/neutron/api-paste.ini /etc/neutron/neutron.conf \ + /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini + [ -d /etc/neutron/plugins/openvswitch ] && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins/openvswitch + [ -d /etc/neutron/plugins ] && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins + [ -d /etc/neutron ] && rmdir --ignore-fail-on-non-empty /etc/neutron rm -rf /var/lib/neutron rm -rf /var/log/neutron fi -- 2.45.2