Description:
The CA Workload Automation AE installation fails on Solaris 8 due to the following error from the as_postinterview.sh script:
/var/tmp/EXTRAAAA4Zaq6v/CAWorkloadAutomationAE.d/$ASI_AUTOSYS_INSTDIR/as_postinterview.sh: test: argument expected
17:09:32 !! Script executed with error: 1
Script or command "as_postinterview.sh" failed with exit code 1.
Reason: The script or command encountered a problem.
Action: Find further details in the installation log file.
Solution:
The error is due to a specific 'if' statement toward the end of the script. The 'if' statement uses a -L argument which is not valid in the Solaris 8 version of /bin/sh. To work around this problem and allow the installation to complete successfully, the following manual steps can be taken during the installation:
if [ -d "$CASHCOMP/lib/JRE" ]; then if [ ! -L "$CASHCOMP/lib/JRE" ]; then rm -rf $LTMP/as_jre > /dev/null 2>&1 mkdir $LTMP/as_jre mv $CASHCOMP/lib/JRE/* $LTMP/as_jre $ECHO ASI_MV_JRE=1 >> $PIF_RESPONSE_FILE fi fi exit 0
exit 0The end result looks like this:
exit 0 if [ -d "$CASHCOMP/lib/JRE" ]; then if [ ! -L "$CASHCOMP/lib/JRE" ]; then rm -rf $LTMP/as_jre > /dev/null 2>&1 mkdir $LTMP/as_jre mv $CASHCOMP/lib/JRE/* $LTMP/as_jre $ECHO ASI_MV_JRE=1 >> $PIF_RESPONSE_FILE fi fi exit 0