![]() ![]() |
![]() |
File: [Pegasus] / pegasus / rpm / tog-specfiles / tog-pegasus-pre.spec
(download)
Revision: 1.4, Tue Jan 24 22:13:02 2006 UTC (18 years, 4 months ago) by w.otsuka Branch: MAIN Changes since 1.3: +1 -1 lines BUG#: 4686 TITLE: Upgrading from tog-pegasus 2.4.3 to tog-pegasus 2.5x generates warning DESCRIPTION: Enable group pegasus creation during upgrades. |
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec # install remove upgrade reinstall # pre 1 - 2 2 # # If it exists, the active OpenPegasus Repository # directory, %PEGASUS_REPOSITORY_DIR is renamed # to %PEGASUS_PREV_REPOSITORY_DIR. If # %PEGASUS_PREV_REPOSITORY_DIR already exists, # it is saved as an archive file. if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then # # Save the current repository to prev_repository # if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \ %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \ %PEGASUS_PREV_REPOSITORY_DIR_NAME rm -rf %PEGASUS_PREV_REPOSITORY_DIR fi /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR fi 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" \ -g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR pegasus \ > /dev/null 2>&1 || :; fi # # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |