rpms/cyphesis/devel cyphesis.spec,1.12,1.13

Michael Thomas (wart) fedora-extras-commits at redhat.com
Sun Dec 16 02:41:22 UTC 2007


Author: wart

Update of /cvs/extras/rpms/cyphesis/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28722

Modified Files:
	cyphesis.spec 
Log Message:
Change shell for cyphesis user on existing installs (BZ #425798)




Index: cyphesis.spec
===================================================================
RCS file: /cvs/extras/rpms/cyphesis/devel/cyphesis.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- cyphesis.spec	24 Nov 2007 20:19:47 -0000	1.12
+++ cyphesis.spec	16 Dec 2007 02:40:47 -0000	1.13
@@ -7,7 +7,7 @@
 
 Name:           cyphesis
 Version:        0.5.14
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        WorldForge game server
 Group:          System Environment/Libraries
 # Would be GPLv2+, except server/protocol_instructions.h is GPLv2 only.
@@ -135,8 +135,12 @@
 %pre
 getent group cyphesis >/dev/null || groupadd -r cyphesis
 getent passwd cyphesis >/dev/null || \
-       useradd -r -g cyphesis -d %{_datadir}/%{name} -s /sbin/nologin \
-       -c "Useful comment about the purpose of this account" cyphesis
+       useradd -r -g cyphesis -d %{_datadir}/%{name} \
+       -c "Cyphesis game server" cyphesis
+cyphesis_shell=`getent passwd cyphesis | cut -d: -f 7`
+if [ "$cyphesis_shell" == "/sbin/nologin" ] ; then
+    chsh cyphesis -s /bin/bash
+fi
 exit 0
 
 %post
@@ -221,6 +225,9 @@
 
 
 %changelog
+* Sat Dec 15 2007 Wart <wart at kobold.org> 0.5.14-2
+- Change shell for cyphesis user on existing installs (BZ #425798)
+
 * Sat Nov 3 2007 Wart <wart at kobold.org> 0.5.14-1
 - Update to 0.5.14
 




More information about the fedora-extras-commits mailing list