chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r1233790 - in /incubator/chukwa/trunk: CHANGES.txt src/packages/rpm/specs/chukwa.spec
Date Fri, 20 Jan 2012 06:40:35 GMT
Author: eyang
Date: Fri Jan 20 06:40:35 2012
New Revision: 1233790

URL: http://svn.apache.org/viewvc?rev=1233790&view=rev
Log:
CHUKWA-630. Added chukwa user setup to rpm package. (Noel Duffy via Eric Yang)

Modified:
    incubator/chukwa/trunk/CHANGES.txt
    incubator/chukwa/trunk/src/packages/rpm/specs/chukwa.spec

Modified: incubator/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/CHANGES.txt?rev=1233790&r1=1233789&r2=1233790&view=diff
==============================================================================
--- incubator/chukwa/trunk/CHANGES.txt (original)
+++ incubator/chukwa/trunk/CHANGES.txt Fri Jan 20 06:40:35 2012
@@ -6,6 +6,8 @@ Trunk (unreleased changes)
 
   IMPROVEMENTS
 
+    CHUKWA-630. Added chukwa user setup to rpm package. (Noel Duffy via Eric Yang)
+
   BUGS
 
 Release 0.5

Modified: incubator/chukwa/trunk/src/packages/rpm/specs/chukwa.spec
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/src/packages/rpm/specs/chukwa.spec?rev=1233790&r1=1233789&r2=1233790&view=diff
==============================================================================
--- incubator/chukwa/trunk/src/packages/rpm/specs/chukwa.spec (original)
+++ incubator/chukwa/trunk/src/packages/rpm/specs/chukwa.spec Fri Jan 20 06:40:35 2012
@@ -64,11 +64,14 @@ cd %{buildroot}%{_prefix}
 chmod a+x %{buildroot}%{_prefix}/tools/expire.sh
 rm -rf %{buildroot}%{_prefix}/src
 rm -rf %{buildroot}%{_prefix}/build.xml
+%pre
+/usr/sbin/useradd --shell /sbin/nologin -u 210 --comment "Chukwa" -r --home %{_prefix} %{uid}
&> /dev/null || :
 %post
 echo "Congratulation!  You have successfully installed Chukwa."
 %preun
 echo
 %postun
+/usr/sbin/userdel %{uid} &> /dev/null
 %files
 %defattr(-,%{uid},%{gid})
 %{_prefix}



Mime
View raw message