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

Diff for /pegasus/rpm/tog-specfiles/tog-pegasus-post.spec between version 1.7 and 1.15

version 1.7, 2006/01/13 20:50:24 version 1.15, 2009/12/15 10:52:32
Line 3 
Line 3 
 #           install   remove   upgrade  reinstall #           install   remove   upgrade  reinstall
 # %post        1        -         2         2 # %post        1        -         2         2
 # #
    if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then     export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
        # 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 [ $1 -eq 1 ]; then
 %if %{AUTOSTART} %if %{AUTOSTART}
        /sbin/chkconfig --add tog-pegasus         /sbin/chkconfig --add %{Flavor}-pegasus
 %endif %endif
    :;    :;
    elif [ $1 -gt 0 ]; then    elif [ $1 -gt 0 ]; then
        /etc/init.d/tog-pegasus condrestart         /etc/init.d/%{Flavor}-pegasus condrestart
    :;    :;
    fi    fi
 # #


Legend:
Removed from v.1.7  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2