rpms/ez-ipupdate/devel ez-ipupdate.spec,1.9,1.10

Jeff Layton (jlayton) fedora-extras-commits at redhat.com
Sun Jul 2 23:54:01 UTC 2006


Author: jlayton

Update of /cvs/extras/rpms/ez-ipupdate/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22833

Modified Files:
	ez-ipupdate.spec 
Log Message:
Fix argument test in %post. Don't remove user and group on package removal



Index: ez-ipupdate.spec
===================================================================
RCS file: /cvs/extras/rpms/ez-ipupdate/devel/ez-ipupdate.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ez-ipupdate.spec	2 Jul 2006 21:16:44 -0000	1.9
+++ ez-ipupdate.spec	2 Jul 2006 23:54:01 -0000	1.10
@@ -90,7 +90,7 @@
 %post
 /sbin/chkconfig --add ez-ipupdate
 # move config file from old location to new if it exists
-if [ $1 -ge 1 ]; then
+if [ $1 -gt 1 ]; then
     [ -f %{_sysconfdir}/ez-ipupdate.conf ] && /bin/mv %{_sysconfdir}/ez-ipupdate.conf %{_sysconfdir}/ez-ipupdate/default.conf
     [ -f %{_localstatedir}/run/ez-ipupdate/ez-ipupdate.pid ] && /bin/mv %{_localstatedir}/run/ez-ipupdate/ez-ipupdate.pid %{_localstatedir}/run/ez-ipupdate/default.pid
     [ -f %{_localstatedir}/lock/subsys/ez-ipupdate ] && /bin/mv %{_localstatedir}/lock/subsys/ez-ipupdate %{_localstatedir}/lock/subsys/ez-ipupdate-default
@@ -103,12 +103,6 @@
   /sbin/chkconfig --del ez-ipupdate
 fi
 
-%postun
-if [ $1 -eq 0 ] ; then
-  /usr/sbin/userdel ez-ipupd >/dev/null 2>&1 || :
-  /usr/sbin/groupdel ez-ipupd >/dev/null 2>&1 || :
-fi
-
 %files
 %defattr(-,root,root,-)
 %{_mandir}/man8/ez-ipupdate.8*
@@ -127,6 +121,8 @@
 * Sat Jul 1 2006 Jeff Layton <jlayton at redhat.com> - 3.0.11-0.10.b8
 - new init script that can handle more than one config file
 - move config files into directory under sysconfdir
+- don't remove user and group on exit
+- don't set permissions explicitly except where needed
 
 * Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 3.0.11-0.9.b8
 - Sync with Debian's 3.0.11b8-10.




More information about the fedora-extras-commits mailing list