version 1.7, 2006/01/13 20:50:24
|
version 1.14, 2008/12/05 21:54:05
|
|
|
# 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 tog-pegasus |