
# *******************************************************
# *** Experimental script to run Fiper deploy script outside the Express installer
# *** The python scripts must be in the same directory as this file
# *******************************************************
# *** Configuration Settings.  Edit these before running this script
# *******************************************************

fiperuser=fiperacs
fiperpw='You-Wish'
profile=AppSrv01
acshost=WASHOST
db2user=db2inst1
db2pw='You-Wish'
db2host=DBHOST
db2port=50001

# Directories
WAS_HOME=/opt/SIMULIA/Express/AppServer
FIPER_HOME=/opt/SIMULIA/ExecutionEngine/5.0

# *******************************************************
# *** End of user-configurable settings
# *******************************************************


WAS_ARGS=" -lang jython -profileName $profile -conntype SOAP -user $fiperuser -password $fiperpw  -tracefile deploy.log"
SCRIPT=" -profile ./WebSphereConfigProcs.py -f ./WebSphereScript.py"
SCRIPT_ARGS="$FIPER_HOME $db2user $db2pw $db2host $db2port $fiperuser $fiperpw $acshost"

set -x
$WAS_HOME/bin/wsadmin.sh $WAS_ARGS $SCRIPT $SCRIPT_ARGS
