Skip to content

Commit

Permalink
fixed setup for unix and detecting javahome in mac
Browse files Browse the repository at this point in the history
  • Loading branch information
michele-sciabarra committed Dec 4, 2014
1 parent ceacb80 commit e74567d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions agilesites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
BASE="$(dirname $0)"
BASE="$(cd $BASE; pwd)"
export PATH="$BASE/bin:$BASE/wcs/home/bin:$PATH"
if test -e /usr/libexec/java_home
then JAVA_HOME=$(/usr/libexec/java_home)
fi
if test -n "$JAVA_HOME"
then export PATH="$JAVA_HOME/bin:$PATH"
else echo JAVA_HOME must be defined and pointing to a JDK - not a JRE ; exit
Expand Down
2 changes: 1 addition & 1 deletion wcs/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ rm home/*.done
touch home/hsql.flag
touch home/setup.flag
java -cp ../bin/wcs.jar wcs.Silent "$BASE" misc/silentinstaller/generic_omii.ini Sites/install.ini Sites/omii.ini
java -cp ../bin/wcs.jar wcs.Silent "$BASE" misc/silentinstaller/generic_omii.ini Sites/install.ini home/ominstall/omii.ini
cp Sites/omii.ini home/ominstallinfo/omii.ini
java -cp ../bin/wcs.jar wcs.Replacer .. "$BASE" <context.xml >webapps/cs/META-INF/context.xml
java -cp ../bin/wcs.jar wcs.Unzip Sites/csdt.zip home
cd ..
Expand Down

0 comments on commit e74567d

Please sign in to comment.