<!-- member ${jobnamePrefix}855N -->
#!/bin/sh
# =====================================================================         
# PROPRIETARY-STATEMENT:                                                        
# Licensed Material - Property of IBM                                           
#                                                                               
# 5724-I63, 5724-H88, 5655-N01, 5733-W61                                        
# (C) Copyright IBM Corp. 1999, 2011                                            
# All Rights Reserved                                                           
# US Government Users Restricted Rights - Use, duplication or                   
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.             
# =====================================================================         
<!-- import documents/data/buildInfo.script -->
# =====================================================================        
#                                                                               
# Augments the managed node profile.                    
#                                                                              
# =====================================================================        
<!--  Change Activity:                                                -->         
<!--                                                                  -->         
<!-- F908-37758      V8.0  20101223 PDOP: Initial version             -->
<!-- F43152-51709.9  V8.5  20120123 PDOP: ASCII profile augments      -->
<!-- 739067        V8.5.5  20121114 PDOP: TMPDIR (renamed BBO855AN)   -->
<!-- ================================================================ -->

# Gets path of temporary work directory
workDirPath=$(dirname "$0")
echo "Work directory path is $workDirPath"

# Verifies that the augment profile script exists
if [[ ! -f '${zConfigMountPoint}/${zWasServerDir}/bin/zAugmentProfile.sh' ]]; then
	echo 'ERROR: The bin/zAugmentProfile.sh file does not exist within the'
	echo '       specified WebSphere Application Server for z/OS configuration image:'
	echo '       ${zConfigMountPoint}/${zWasServerDir}'
	echo '       Most likely the configuration image path is not correct.'
	exit 8
fi

# Invokes script to augment the profile
'${zConfigMountPoint}/${zWasServerDir}/bin/zAugmentProfile.sh' \
 -configRoot '${zConfigMountPoint}/${zWasServerDir}' \ 
<!-- if (${zAsciiProfileAugment} == true) -->
 -ascii \          
<!-- endif -->
 -responseFile "$workDirPath"'/${lowerCaseJobnamePrefix}rspn'
rc="$?" 
 
exit "$rc"
                                                                              
