From: Ben Pfaff Date: Thu, 27 Aug 2009 21:36:06 +0000 (-0700) Subject: xenserver: Don't (try to) remove log files on RPM uninstall. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cee7f2815c37b136a0bc071571cb05355277695;p=openvswitch xenserver: Don't (try to) remove log files on RPM uninstall. The RPM spec file was trying to remove Open vSwitch log files as part of the RPM uninstall process. It wasn't succeeding, however, since the glob pattern was wrong. Instead of fixing the glob pattern, just stop trying to remove the log files. Log files are, after all, important for trying to debug problems, and if we delete them at uninstall time then that makes life harder. --- diff --git a/xenserver/vswitch-xen.spec b/xenserver/vswitch-xen.spec index 8c234d3f..a23b3ec1 100644 --- a/xenserver/vswitch-xen.spec +++ b/xenserver/vswitch-xen.spec @@ -308,10 +308,9 @@ if [ "$1" = "0" ]; then # $1 = 1 for upgrade find %{_prefix} -type d -depth -exec rmdir \{\} \; \ || printf "Could not remove vSwitch install directory.\n" - # Remove all configuration and log files + # Remove all configuration files rm -f /etc/ovs-vswitchd.conf rm -f /etc/sysconfig/vswitch - rm -f /var/log/vswitch* rm -f /etc/ovs-vswitchd.cacert printf "\nYou MUST reboot the server now to complete the change to\n"