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

 1 denise.eckstein 1.6 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
 2                     #
 3                     #           install   remove   upgrade  reinstall
 4                     # %post        1        -         2         2
 5                     #
 6                        if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
 7                            # Running Repository Upgrade utility
 8                            %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
 9                                %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
10                            /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
11                                %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
12                                %PEGASUS_PREV_REPOSITORY_DIR_NAME
13                            rm -rf %PEGASUS_PREV_REPOSITORY_DIR
14 denise.eckstein 1.1    fi
15 denise.eckstein 1.6    if [ $1 -eq 1 ]; then
16                     %if %{AUTOSTART}
17                            /sbin/chkconfig --add tog-pegasus
18                     %endif
19                        :;
20                        elif [ $1 -gt 0 ]; then
21                            /sbin/service tog-pegasus condrestart
22                        :;
23 denise.eckstein 1.1    fi
24 denise.eckstein 1.6 #
25                     # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2