#!/bin/sh
# =====================================================================         
# PROPRIETARY-STATEMENT:                                                        
# Licensed Material - Property of IBM                                           
#                                                                               
# 5724-I63, 5724-H88, 5655-N01, 5733-W61                                        
# (C) Copyright IBM Corp. 1999, 2013                                            
# 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 -->
# =====================================================================        
#                                                                               
# Create and mount the configuration file system.                    
#                                                                            
# Note: To create the configuration file system without mounting            
# it, delete the -mountpoint argument.                                                     
#                                                                              
# =====================================================================        
<!--  Change Activity:                                                -->         
<!--                                                                  -->         
<!-- F908-33863.1 V8.0 20101005 PDOP: Initial version                 -->
<!-- 676719      V8.0  20101102 PDOP: Escape response file values     -->
<!-- 679061      V8.0  20101117 PDOP: Verify script file exists       -->
<!-- 739067    V8.5.5  20121129 PDOP: TMPDIR support(renamed BBO855CM)-->
<!-- ================================================================ -->

# Verifies that the create config file system script exists
if [[ ! -f '${zSmpePath}/bin/zCreateConfigFileSystem.sh' ]]; then
	echo 'ERROR: The bin/zCreateConfigFileSystem.sh file does not exist within the'
	echo '       specified WebSphere Application Server for z/OS install image:'
	echo '       ${zSmpePath}'
	echo '       Most likely the WebSphere Application Server install path is not correct.'
	exit 8
fi

# Invokes script to create and mount the configuration file system
'${zSmpePath}/bin/zCreateConfigFileSystem.sh' \
 -fileSystemType '${zFilesystemType}' \
 -fileSystemName '${zConfigHfsName}' \
 -primaryCylinders '${zConfigHfsPrimaryCylinders}' \
 -secondaryCylinders '${zConfigHfsSecondaryCylinders}' \
<!-- if (${zConfigHfsVolume} != *) -->
 -volume '${zConfigHfsVolume}' \
<!-- endif -->
 -mountPoint '${zConfigMountPoint}' \
 -configOwner '${zAdminUserid}' \
 -configGroup '${zConfigurationGroup}'
rc="$?"

exit "$rc"
                                                                              
