- milestone: --> Not Done
I'd like to have documentation with examples about:
How do I search using InstallJammer
before installation for the existence
certain products, which are pre-requisite
for my product; Also how do I search for certain environment variables.
As a third, a certain environment variable,
namely $AGENTWORKS_DIR
should result in my %InstallDir%
for example, if $AGENTWORKS_DIR is /home/unicenter
then my InstallDir should become
/home/unicenter/agents
How to do this?
Example shell scripts:
# check for existence of installed commponents
res=`lsm -l | $AWK '
BEGIN {i = 0;}\
/ca-cs-csl/ {++i; next;}\
/ca-cs-atech-services[^-]/ {++i; next;}\
/ca-unicenter-nsm-utils/ {++i; next;}\
END { print i;}\
'`
if [ $res -lt 3 ]
then
echo "pre-requisite ca-cs-csl or ca-cs-atech-services or ca-unicenter-nsm-utils missing. Please install it and run this script again-"
echo
exit 3;
fi
#check for environment variables:
if [ "$AGENTWORKS_DIR" = "" ]
then
echo "No AGENTWORKS_DIR environment variable. Please install nsm r11 and run this script again-"
echo
exit 6;
fi