INTEGRATION: CWS onlineupdate3 (1.6.60); FILE MERGED

2006/07/14 09:19:29 is 1.6.60.3: #137960# linux patch script and new module online update
2006/07/13 16:09:30 is 1.6.60.2: #137961# patch with new feature
2006/07/13 16:06:37 is 1.6.60.1: #137961# patch with new feature
This commit is contained in:
Ivo Hinkelmann
2006-08-04 08:51:41 +00:00
parent b34b04633a
commit 4b42ecd38f

View File

@@ -46,6 +46,26 @@ echo
rpm --upgrade -v --hash --prefix $PRODUCTINSTALLLOCATION --notriggers $RPMLIST
echo
# Check, if online update rpm is available
ONLINEUPDATERPM=`ls $BASEDIR/RPMS/*.rpm | grep onlineupdate`
if [ "x$ONLINEUPDATERPM" != "x" ]; then
# Check, that $RPMLIST does not contain online update rpm (then it is already installed)
ONLINEPDATEINSTALLED=`grep onlineupdate ${RPMLIST}`
if [ "x$ONLINEPDATEINSTALLED" == "x" ]; then
# Ask user, if online update shall be installed
echo
read -p "Do you want to install the new online update feature (y/n) ? " -n 1 reply leftover
echo
if [ "$reply" == "y" ]; then
# Install the online update rpm
rpm --install -v --hash --prefix $PRODUCTINSTALLLOCATION --notriggers $ONLINEUPDATERPM
fi
fi
fi
# Some RPM versions have problems with -U and --prefix
if [ ! -f ${BOOTSTRAPRC} ]; then
echo Update failed due to a bug in RPM, uninstalling ..