From 1cee7f2815c37b136a0bc071571cb05355277695 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 27 Aug 2009 14:36:06 -0700 Subject: [PATCH] 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. --- xenserver/vswitch-xen.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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" -- 2.30.2