version 1.69, 2005/11/01 21:08:38
|
version 1.71, 2005/11/07 22:41:34
|
|
|
then | then |
if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]] | if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]] |
then | then |
rm -rf %PEGASUS_PREV_REPOSITORY_DIR |
mv %PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.rpmsave; |
fi | fi |
mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR | mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR |
mkdir %PEGASUS_REPOSITORY_DIR | mkdir %PEGASUS_REPOSITORY_DIR |
|
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec |
| |
elif [ $1 -gt 1 ]; then | elif [ $1 -gt 1 ]; then |
|
if [ -d %PEGASUS_PREV_REPOSITORY_DIR ] |
|
then |
|
# Running Repository Upgrade utility |
|
%PEGASUS_SBIN_DIR/repupgrade 2>>%PEGASUS_INSTALL_LOG |
|
fi |
/sbin/service tog-pegasus condrestart | /sbin/service tog-pegasus condrestart |
:; | :; |
fi | fi |