chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r775011 - in /hadoop/chukwa: branches/chukwa-0.1/tools/specs/chukwa.spec trunk/tools/specs/chukwa.spec
Date Fri, 15 May 2009 05:35:48 GMT
Author: eyang
Date: Fri May 15 05:35:47 2009
New Revision: 775011

URL: http://svn.apache.org/viewvc?rev=775011&view=rev
Log:
CHUKWA-211. Manage symlink correctly for RPM upgrade and uninstall. (Eric Yang)

Modified:
    hadoop/chukwa/branches/chukwa-0.1/tools/specs/chukwa.spec
    hadoop/chukwa/trunk/tools/specs/chukwa.spec

Modified: hadoop/chukwa/branches/chukwa-0.1/tools/specs/chukwa.spec
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.1/tools/specs/chukwa.spec?rev=775011&r1=775010&r2=775011&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.1/tools/specs/chukwa.spec (original)
+++ hadoop/chukwa/branches/chukwa-0.1/tools/specs/chukwa.spec Fri May 15 05:35:47 2009
@@ -202,7 +202,9 @@
 %preun
 echo
 %postun
-rm -f /service/chukwa-*
+if [ ! -f /etc/init.d/chukwa-collector ]; then
+  rm -f /service/chukwa-*
+fi
 %files
 %defattr(-,%{uid},%{gid})
 %{_prefix}

Modified: hadoop/chukwa/trunk/tools/specs/chukwa.spec
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/tools/specs/chukwa.spec?rev=775011&r1=775010&r2=775011&view=diff
==============================================================================
--- hadoop/chukwa/trunk/tools/specs/chukwa.spec (original)
+++ hadoop/chukwa/trunk/tools/specs/chukwa.spec Fri May 15 05:35:47 2009
@@ -202,7 +202,9 @@
 %preun
 echo
 %postun
-rm -f /service/chukwa-*
+if [ ! -f /etc/init.d/chukwa-collector ]; then
+  rm -f /service/chukwa-*
+fi
 %files
 %defattr(-,%{uid},%{gid})
 %{_prefix}



Mime
View raw message