version 1.7, 2006/01/13 20:50:24
|
version 1.15, 2009/12/15 10:52:32
|
|
|
# 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 |
# | # |