rpms/tclhttpd/FC-3 tclhttpd.spec,1.2,1.3

Michael Thomas (wart) fedora-extras-commits at redhat.com
Sat Jan 21 05:18:23 UTC 2006


Author: wart

Update of /cvs/extras/rpms/tclhttpd/FC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9916/FC-3

Modified Files:
	tclhttpd.spec 
Log Message:
Don't attempt to create the tclhttpd user if it already exists.




Index: tclhttpd.spec
===================================================================
RCS file: /cvs/extras/rpms/tclhttpd/FC-3/tclhttpd.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tclhttpd.spec	16 Jan 2006 01:48:31 -0000	1.2
+++ tclhttpd.spec	21 Jan 2006 05:18:23 -0000	1.3
@@ -1,7 +1,7 @@
 %define contentdir %_var/www/tclhttpd
 Name: tclhttpd
 Version: 3.5.1
-Release: 6%{?dist}
+Release: 7%{?dist}
 Summary: Extensible Web+Application server written in Tcl
 
 Group: System Environment/Daemons
@@ -88,7 +88,10 @@
 %pre
 # The "tclhttpd" user is used so that we don't have to run the
 # server as "root" or "nobody".
-/usr/sbin/fedora-useradd 16 -c "Tclhttpd" -s /bin/false -r -d %{contentdir} tclhttpd
+user_uid=`id -u tclhttpd 2>/dev/null`
+if [ x"$user_uid" = x ] ; then
+    /usr/sbin/fedora-useradd 16 -c "Tclhttpd" -s /bin/false -d %{contentdir} tclhttpd
+fi
 
 %post
 /sbin/chkconfig --add tclhttpd




More information about the fedora-extras-commits mailing list