SPECS: freenx-server.spec - add nxserver as a shell

aredridel aredridel at pld-linux.org
Sun Aug 17 04:04:51 CEST 2008


Author: aredridel                    Date: Sun Aug 17 02:04:50 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add nxserver as a shell

---- Files affected:
SPECS:
   freenx-server.spec (1.41 -> 1.42) 

---- Diffs:

================================================================
Index: SPECS/freenx-server.spec
diff -u SPECS/freenx-server.spec:1.41 SPECS/freenx-server.spec:1.42
--- SPECS/freenx-server.spec:1.41	Sat Aug 16 23:27:20 2008
+++ SPECS/freenx-server.spec	Sun Aug 17 04:04:45 2008
@@ -96,6 +96,12 @@
 %useradd -u 160 -d %{_sysconfdir}/nxserver -s %{_bindir}/nxserver -g users -c "FreeNX User" nx
 
 %post
+umask 022
+if [ ! -f /etc/shells ]; then
+	echo "%{_bindir}/nxserver" >> /etc/shells
+else
+	grep -q '^%{_bindir}/nxserver$' /etc/shells || echo "%{_bindir}/nxserver" >> /etc/shells
+fi
 /sbin/chkconfig --add freenx
 %service freenx restart
 
@@ -104,6 +110,11 @@
 %service freenx stop
 /sbin/chkconfig --del freenx
 fi
+if [ "$1" = "0" ]; then
+	umask 022
+	grep -v '^%{_bindir}/nxserver$' /etc/shells > /etc/shells.new
+	mv -f /etc/shells.new /etc/shells
+fi
 
 %postun
 if [ "$1" = "0" ]; then
@@ -124,6 +135,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.42  2008/08/17 02:04:45  aredridel
+- add nxserver as a shell
+
 Revision 1.41  2008/08/16 21:27:20  aredridel
 - add todo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/freenx-server.spec?r1=1.41&r2=1.42&f=u



More information about the pld-cvs-commit mailing list