Skip to content

Commit

Permalink
put java home in grouper env
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Dec 15, 2021
1 parent 6c2c9c6 commit a88908a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions container_files/usr-local-bin/librarySetupFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ setupFiles_storeEnvVars() {
echo "grouperContainer; INFO: (librarySetupFiles.sh-setupFiles_storeEnvVars) sed -i \"s|^declare -x |export |\" /opt/grouper/grouperEnv.sh, result: $returnCode"
if [ $returnCode != 0 ]; then exit $returnCode; fi

echo "" >> /opt/grouper/grouperEnv.sh

echo "export JAVA_HOME=$GROUPER_JAVA_HOME" >> /opt/grouper/grouperEnv.sh
returnCode=$?
echo "grouperContainer; INFO: (librarySetupFiles.sh-setupFiles_storeEnvVars) echo \"export JAVA_HOME=$GROUPER_JAVA_HOME\" >> /opt/grouper/grouperEnv.sh, result: $returnCode"
if [ $returnCode != 0 ]; then exit $returnCode; fi

if [ ! -f /home/tomcat/.bashrc ]
then
echo "grouperContainer; ERROR: (librarySetupFiles.sh-setupFiles_storeEnvVars) Why doesnt /home/tomcat/.bashrc exist????"
Expand Down

0 comments on commit a88908a

Please sign in to comment.