fix. again.
This commit is contained in:
parent
78909bc9b7
commit
a35447f272
@ -15,7 +15,7 @@
|
||||
Summary: OpenPegasus WBEM Services for Linux
|
||||
Name: tog-pegasus
|
||||
Version: 2.5
|
||||
Release: 8
|
||||
Release: 9
|
||||
Epoch: 2
|
||||
Group: Systems Management/Base
|
||||
License: Open Group Pegasus Open Source
|
||||
@ -204,19 +204,9 @@ if [ $1 -gt 1 ]; then
|
||||
elif [ $1 -eq 1 ]; then
|
||||
# first install: create the 'pegasus' user and group:
|
||||
# By default, ONLY the "pegasus" user will be allowed to connect to cimserver over network
|
||||
# create pegasus group IFF it does not already exist
|
||||
# - use any free ID between 1 and 499 if group 65 exists:
|
||||
/usr/sbin/groupadd -g 65 -f -r pegasus >/dev/null 2>&1 || :;
|
||||
if ! /usr/bin/id -u pegasus > /dev/null 2>&1; then
|
||||
if ! /bin/egrep -q '^[^:]+:[^:]+:66:' /etc/passwd >/dev/null 2>&1 ; then
|
||||
/usr/sbin/useradd -u 66 -r -n -M -g pegasus -s /sbin/nologin -d /var/lib/Pegasus \
|
||||
/usr/sbin/useradd -u 66 -r -n -M -g pegasus -s /sbin/nologin -d /var/lib/Pegasus \
|
||||
-c "tog-pegasus OpenPegasus WBEM/CIM services" pegasus >/dev/null 2>&1 || :;
|
||||
else
|
||||
# use any free ID between 1 and 499:
|
||||
/usr/sbin/useradd -r -n -M -g pegasus -s /sbin/nologin -d /var/lib/Pegasus \
|
||||
-c "tog-pegasus OpenPegasus WBEM/CIM services" pegasus >/dev/null 2>&1 || :;
|
||||
fi;
|
||||
fi;
|
||||
fi
|
||||
|
||||
%post
|
||||
|
Loading…
Reference in New Issue
Block a user