diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-04 08:51:41 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-04 08:51:41 +0000 |
commit | 4b42ecd38f6192e850d129ae5340d5f22c1ce006 (patch) | |
tree | ae4fa791afe8788310722a59abd72f3a205b7ad7 /setup_native | |
parent | b34b04633a47087631bc9ca2903654a359701baf (diff) |
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
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/scripts/linuxpatchscript.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/setup_native/scripts/linuxpatchscript.sh b/setup_native/scripts/linuxpatchscript.sh index 59e89a169bd5..208b51cabca5 100644 --- a/setup_native/scripts/linuxpatchscript.sh +++ b/setup_native/scripts/linuxpatchscript.sh @@ -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 .. |