From 2ad2eb90f4b86619a298defca76fd594decbf2a5 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Mon, 31 Mar 2014 15:20:12 +0000 Subject: [PATCH] created symlinks at installation time git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/distributions/smartgears-distribution@93934 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/changelog.xml | 11 +++++++++-- distro/contents/install | 17 +++++++++++++++++ distro/contents/scripts/load-env | 6 +++--- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/distro/changelog.xml b/distro/changelog.xml index f7fdd0e..4e62191 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,10 +1,17 @@ - + First Release - + JAVA 7 Release Included wHN manager service + + included smartgears-utils + upgraded clean scripts to clean the IS + added symlink for shared libs + + + \ No newline at end of file diff --git a/distro/contents/install b/distro/contents/install index f1f2c4f..c212e62 100755 --- a/distro/contents/install +++ b/distro/contents/install @@ -185,4 +185,21 @@ if [ -z "$dryrun" ]; then sleep .01 fi +#creating the symlink to shared and apps folder + +ln -s $shared $ghnhome/lib + +if [ "$?" != "0" ]; then + echo -e "\nFailed to create the symlink to $shared folder" + exit 1 +fi + +ln -s $apps $ghnhome/apps + +if [ "$?" != "0" ]; then + echo -e "\nFailed to create the symlink to $apps folder" + exit 1 +fi + + echo -e "\ndone.\n" diff --git a/distro/contents/scripts/load-env b/distro/contents/scripts/load-env index c964d10..94a8472 100644 --- a/distro/contents/scripts/load-env +++ b/distro/contents/scripts/load-env @@ -1,7 +1,7 @@ -if [ -z "$CATALINA_HOME" ]; then - echo -e "\nERROR:please specify the CATALINA_HOME env var." >&2 +if [ -z "$GHN_HOME" ]; then + echo -e "\nERROR:please specify the GHN_HOME env var." >&2 echo -e "\naborting.\n" exit 1 fi -export CLASSPATH=$CLASSPATH:"$CATALINA_HOME/lib/*" \ No newline at end of file +export CLASSPATH=$CLASSPATH:"$GHN_HOME/lib/*" \ No newline at end of file