xenserver: Don't (try to) remove log files on RPM uninstall.
authorBen Pfaff <blp@nicira.com>
Thu, 27 Aug 2009 21:36:06 +0000 (14:36 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 8 Sep 2009 20:34:12 +0000 (13:34 -0700)
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

index 8c234d3..a23b3ec 100644 (file)
@@ -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"