<!-- member ${jobnamePrefix}AUGA -->
#!/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 app server profile.                    
#                                                                              
# =====================================================================        
<!--  Change Activity:                                                -->         
<!--                                                                  -->         
<!-- F908-37758      V8.0  20101223 PDOP: Initial version             -->
<!-- F43152-51709.9  V8.5  20120123 PDOP: ASCII profile augments      -->
<!-- ================================================================ -->

# 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) -->
 -responseFile '/tmp/com.ibm.ws390.pmt/${TIMESTMP}/${lowerCaseJobnamePrefix}rspa.ascii' \
 -ascii          
<!-- endif -->
<!-- if (${zAsciiProfileAugment} != true) -->
 -responseFile '/tmp/com.ibm.ws390.pmt/${TIMESTMP}/${lowerCaseJobnamePrefix}rspa'
<!-- endif -->
rc="$?" 
 
exit "$rc"
                                                                              
