If you have specified pre-install scripts in the prototype file, these are installed now. Pre-install scripts are defined for the PIF product or for a component of the PIF product, and must be executed before the installation of files and directories starts. A pre-install script ensures the success of the installation process, for example, it stops running daemon processes or checks the installation environment. (Have disks been shared? Are scalability servers available?)
Parameters are passed as shell parameters to all (pre- and post-) install scripts. New or updated parameters have to be appended to the response file.
The following script checks whether the server, whose name has been passed by the $SERVERNAME parameter, is available. If so, the script activates the component installation flag (#cinstall=$INSTALL_SERVER in the component section of the prototype file).
## exit if response file has not been passed [ ! "$PIF_RESPONSE_FILE" -o ! -s "$PIF_RESPONSE_FILE" ] && exit 1
## exit if the server name has not been passed [ ! "$SERVERNAME" ] && exit 1
## server responds, activate the server component if [ 'ping $SERVERNAME 2>/dev/null; echo $?' -eq 0 ] then
echo "INSTALL_SERVER=1" >> $PIF_RESPONSE_FILE
else
echo "INSTALL_SERVER=0" >> $PIF_RESPONSE_FILE
fi
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|