Replace useradd '-n' option by '-N' ('-n' is obsolete)

This commit is contained in:
vcrhonek 2009-04-16 11:55:24 +00:00
parent aa8a52ece5
commit 8825f3b2c5

View File

@ -43,7 +43,7 @@
%define _default_patch_fuzz 2
Version: 2.7.2
Release: 7%{?dist}
Release: 8%{?dist}
Epoch: 2
#
Summary: OpenPegasus WBEM Services for Linux
@ -378,7 +378,7 @@ make -f RedHat.OpenPegasus.Makefile install prefix=$RPM_BUILD_ROOT libdir=%{_lib
if [ $1 -eq 1 ]; then
# first install: create the 'pegasus' user and group:
/usr/sbin/groupadd -g %{pegasus_gid} -f -r pegasus >/dev/null 2>&1 || :;
/usr/sbin/useradd -u %{pegasus_uid} -r -n -M -g pegasus -s /sbin/nologin -d /var/lib/Pegasus \
/usr/sbin/useradd -u %{pegasus_uid} -r -N -M -g pegasus -s /sbin/nologin -d /var/lib/Pegasus \
-c "tog-pegasus OpenPegasus WBEM/CIM services" pegasus >/dev/null 2>&1 || :;
elif [ $1 -gt 1 ]; then
if [ -d /var/lib/Pegasus/repository ]; then
@ -462,6 +462,10 @@ fi
%changelog
* Thu Apr 16 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.2-8
- Replace useradd '-n' option by '-N' ('-n' is obsolete)
Resolves: #495729
* Tue Mar 3 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.2-7
- Add noreplace to config files