Removed hard dependency on IBM's JVM.
This commit is contained in:
@@ -63,6 +63,34 @@ function display_usage
|
||||
echo ""
|
||||
}
|
||||
|
||||
function setup_jaas_file
|
||||
{
|
||||
# Determine the file names
|
||||
TEMPLATE_FILE=$TEMPLATE_FILE_FOLDER/jaas.conf
|
||||
CONFIG_FILE=$CONFIG_FILE_FOLDER/jaas.conf
|
||||
|
||||
# Verify that the template file exists
|
||||
if [ ! -f $TEMPLATE_FILE ]; then
|
||||
echo "Template file $TEMPLATE_FILE does not exist"
|
||||
return 2
|
||||
fi
|
||||
|
||||
# Verify that the output folder exists
|
||||
if [ ! -d $CONFIG_FILE_FOLDER ]; then
|
||||
echo "Output folder $CONFIG_FILE_FOLDER does not exist"
|
||||
return 2
|
||||
fi
|
||||
|
||||
# Clean-up the output folder
|
||||
rm -f $CONFIG_FILE
|
||||
|
||||
# Create and edit the output file
|
||||
host=`hostname -f`
|
||||
sed s:HOSTNAME:$host:g $TEMPLATE_FILE > $CONFIG_FILE
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
function setup_iaRealms_file
|
||||
{
|
||||
# Determine the file names
|
||||
@@ -190,6 +218,7 @@ else
|
||||
fi
|
||||
|
||||
# Setup the configuration files
|
||||
setup_jaas_file
|
||||
setup_iaRealms_file
|
||||
RETVAL=$?
|
||||
if [ "$RETVAL" = "0" ]; then
|
||||
|
||||
Reference in New Issue
Block a user