#!/bin/ksh
domainHome=$1
packageHome=$2
profileDirPath=${packageHome}/etc/profile.d
packageName=${packageHome##*/}
profilePath=${profileDirPath}/${packageName}.sh
mkdir -p ${profileDirPath}
#echo "#${packageName%%_*}_HOME=${packageHome}" >> ${profilePath}
echo "export AFSISIO=${packageHome}/data" >> ${profilePath}
echo "rm -f \$TMPDIR/afsisio" >>${profilePath}
echo "ln -s ${packageHome}/data \$TMPDIR/afsisio" >>${profilePath}
echo "#export AFSISIO=\$TMPDIR/afsisio" >>${profilePath}

