Hot Patch bundle pre-install script fails if novell-zenworks-datautils is not installed on device

  • 7000661
  • 11-Jun-2008
  • 30-Apr-2012

Environment

Novell ZENworks 7.2 Linux Management - ZLM7.2

Situation

In the ZLM 7.2 IR1 HP4 Readme (or below), a preinstall script is provided to automate the deployment of the hot patch to devices, as follows:
#########################################
11.If this Hot Patch is applied on 64-bit ZENworks 7.2 Linux Management with IR1
server, then do the following in ZENworks Control Center: 1. After mirroring 'ZLM72IR1-Hot-Patch' , change the install type to '
install' for novell-zenworks-datautils package in the bundle.
2. Add the following line as pre-install script for 'ZLM72IR1-Hot-Patch'
bundle:
rpm -e novell-zenworks-datautils --nodeps
#########################################
But the script will fail if the bundle is deployed
to a managed device (which does not have the package
novell-zenworks-datautils).

Resolution

The HP5 readme has been modified as follows:
#########################################
11. If this Hot Patch is applied on 64-bit ZENworks 7.2 Linux Management with IR1 server, then do the following in ZENworks Control Center:
1. After mirroring 'ZLM72IR1-Hot-Patch' , change the install type to '
install' for novell-zenworks-datautils package in the bundle.
2. Add the following line as pre-install script for 'ZLM72IR1-Hot-Patch'
bundle:
isServer=`rpm -qa | grep novell-zenworks-datamodel`;
if [ ! -z $isServer ]; then
rpm -e novell-zenworks-datautils --nodeps
exit 0;
###########################################