BUG#: 4686
authorw.otsuka <w.otsuka>
Tue, 24 Jan 2006 22:13:02 +0000 (22:13 +0000)
committerw.otsuka <w.otsuka>
Tue, 24 Jan 2006 22:13:02 +0000 (22:13 +0000)
TITLE: Upgrading from tog-pegasus 2.4.3 to tog-pegasus 2.5x generates warning

DESCRIPTION: Enable group pegasus creation during upgrades.

rpm/tog-pegasus.spec
rpm/tog-specfiles/tog-pegasus-pre.spec

index ddf1eb6436733f7d340895db0be4b7a777b7b104..1cac02af224eee1916c69d4d2019e5a85883658c 100644 (file)
@@ -261,7 +261,7 @@ if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
    fi
    /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
 fi
-if [ $1 -eq 1 ]; then
+if [ $1 -gt 0 ]; then
    #  Create the 'pegasus' user and group:
    /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
    /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \
index 0b08def42bd8c629dbf5fe7926c85ba01d9e7b2e..57e17dd7335649a992a651b4ee3ab258e827a9ae 100644 (file)
@@ -20,7 +20,7 @@ if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
    fi
    /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
 fi
-if [ $1 -eq 1 ]; then
+if [ $1 -gt 0 ]; then
    #  Create the 'pegasus' user and group:
    /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
    /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \