#!/bin/sh
rootDir=$1
if [ -d $rootDir ]
then
	echo "Configuring the weblogic server ..."
	cp /opt/egurkha/lib/egurkha.war $rootDir/
	echo "*********************************************************"
	echo "If there were any errors in the above steps, you may not "
	echo "have permissions to update the files in the weblogic "
	echo "server execute the script /opt/egurkha/bin/setup_wl to "
	echo " setup weblogic once again " 
	echo "*********************************************************"
else
	echo "*********************************************************"
	echo " The applications folder  - $rootDir does not exist!"
	echo " Failed to configure weblogic monitoring ..."
	echo " Please run this script again, providing the proper "
	echo " directory location"
	echo "*********************************************************"
fi
