From a35447f2725b3bdafad7c5025f6ed66470283749 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 7 Mar 2006 18:56:49 +0000 Subject: [PATCH] fix. again. --- tog-pegasus.spec | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tog-pegasus.spec b/tog-pegasus.spec index 6f02b96..92e47e3 100644 --- a/tog-pegasus.spec +++ b/tog-pegasus.spec @@ -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