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
|