(file) Return to tog-pegasus-post.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm / tog-specfiles

File: [Pegasus] / pegasus / rpm / tog-specfiles / tog-pegasus-post.spec (download)
Revision: 1.6, Fri Nov 18 21:17:39 2005 UTC (18 years, 6 months ago) by denise.eckstein
Branch: MAIN
CVS Tags: STABLE, PEP244_ServerProfile-root, PEP233_EmbeddedInstSupport-root, BUG_4225_PERFORMANCE_VERSION_1_DONE
Branch point for: PEP244_ServerProfile-branch, PEP233_EmbeddedInstSupport-branch
Changes since 1.5: +23 -65 lines
BUG#:4482
TITLE: Linux Packaging Changes - Phase 1

DESCRIPTION: Initial set of packaging changes to reconcile OpenPegasus and Red Hat RPM spec files.

# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
#
#           install   remove   upgrade  reinstall
# %post        1        -         2         2
#
   if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
       # Running Repository Upgrade utility
       %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
           %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
       /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
   if [ $1 -eq 1 ]; then
%if %{AUTOSTART}
       /sbin/chkconfig --add tog-pegasus
%endif
   :;
   elif [ $1 -gt 0 ]; then
       /sbin/service tog-pegasus condrestart
   :;
   fi
#
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2