further fix for bug 175434
This commit is contained in:
parent
b4c56542e4
commit
78909bc9b7
@ -209,11 +209,11 @@ elif [ $1 -eq 1 ]; then
|
||||
/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 -r -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 -r -d /var/lib/Pegasus \
|
||||
/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;
|
||||
|
Loading…
Reference in New Issue
Block a user