rpms/hsqldb/devel hsqldb.spec,1.9,1.10
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Nov 23 17:13:36 UTC 2005
Author: ashah
Update of /cvs/dist/rpms/hsqldb/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv20645
Modified Files:
hsqldb.spec
Log Message:
- Change hsqldb user shell to /sbin/nologin.
Index: hsqldb.spec
===================================================================
RCS file: /cvs/dist/rpms/hsqldb/devel/hsqldb.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- hsqldb.spec 24 Oct 2005 12:48:26 -0000 1.9
+++ hsqldb.spec 23 Nov 2005 17:13:33 -0000 1.10
@@ -3,7 +3,7 @@
%define name hsqldb
%define version 1.80.1
%define cvs_version 1_8_0_1
-%define release 1jpp_3fc
+%define release 1jpp_4fc
Name: %{name}
Version: %{version}
@@ -145,8 +145,8 @@
# Add the "hsqldb" user and group
# we need a shell to be able to use su - later
%{_sbindir}/groupadd -r %{name} 2> /dev/null || :
-%{_sbindir}/useradd -g %{name} \
- -s /bin/sh -d %{_localstatedir}/lib/%{name} -r %{name} 2> /dev/null || :
+%{_sbindir}/useradd -g %{name} -s /sbin/nologin \
+ -d %{_localstatedir}/lib/%{name} -r %{name} 2> /dev/null || :
%post
rm -f %{_localstatedir}/lib/%{name}/lib/hsqldb.jar
@@ -157,6 +157,10 @@
)
%{_bindir}/rebuild-gcj-db
+if [ "$1" -ge "2" ]; then
+ chsh -s /sbin/nologin %{name}
+fi
+
%preun
if [ "$1" = "0" ]; then
rm -f %{_localstatedir}/lib/%{name}/lib/hsqldb.jar
@@ -204,6 +208,9 @@
%{_datadir}/%{name}
%changelog
+* Wed Nov 23 2005 Archit Shah <ashah at redhat.com> 0:1.80.1-1jpp_4fc
+- Change hsqldb user shell to /sbin/nologin.
+
* Mon Oct 24 2005 Gary Benson <gbenson at redhat.com> 0:1.80.1-1jpp_3fc
- Change /etc/init.d to /etc/rc.d/init.d.
More information about the fedora-cvs-commits
mailing list