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 denise.eckstein 1.8 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
7
|
8 denise.eckstein 1.6 if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
9 # Running Repository Upgrade utility
10 %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
11 %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
12 /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
13 %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
14 %PEGASUS_PREV_REPOSITORY_DIR_NAME
15 rm -rf %PEGASUS_PREV_REPOSITORY_DIR
|
16 denise.eckstein 1.1 fi
|
17 denise.eckstein 1.6 if [ $1 -eq 1 ]; then
18 %if %{AUTOSTART}
19 /sbin/chkconfig --add tog-pegasus
20 %endif
21 :;
22 elif [ $1 -gt 0 ]; then
|
23 w.otsuka 1.7 /etc/init.d/tog-pegasus condrestart
|
24 denise.eckstein 1.6 :;
|
25 denise.eckstein 1.1 fi
|
26 denise.eckstein 1.6 #
27 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
|