Skip to content
Snippets Groups Projects
Commit f647cf94 authored by brinn's avatar brinn
Browse files

fix: make passwd.sh find the Java executable

SVN: 20258
parent 60dc0cf0
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
# #
# ----------------------------------------------------------- # -----------------------------------------------------------
source `dirname "$0"`/setup-env
APPLICATION_NAME=openbis APPLICATION_NAME=openbis
# #
...@@ -23,15 +25,13 @@ fi ...@@ -23,15 +25,13 @@ fi
WD="`dirname $bin`" WD="`dirname $bin`"
cd "$WD/.." cd "$WD/.."
JAVA_BIN="$JAVA_HOME/bin/java" if [ ! -x "$JVM" ]; then
if [ ! -x "$JAVA_BIN" ]; then
echo "No java runtime environment executable found. You need to set the environment variable JAVA_HOME appropriately." echo "No java runtime environment executable found. You need to set the environment variable JAVA_HOME appropriately."
exit 1 exit 1
fi fi
LIB=webapps/$APPLICATION_NAME/WEB-INF/lib LIB=webapps/$APPLICATION_NAME/WEB-INF/lib
$JAVA_HOME/bin/java \ $JVM \
-cp $LIB/cisd-args4j.jar:$LIB/commons-lang.jar:$LIB/commons-io.jar:$LIB/commons-codec.jar:$LIB/jline.jar:$LIB/log4j.jar:$LIB/$APPLICATION_NAME.jar:$LIB/screening.jar \ -cp $LIB/cisd-args4j.jar:$LIB/commons-lang.jar:$LIB/commons-io.jar:$LIB/commons-codec.jar:$LIB/jline.jar:$LIB/log4j.jar:$LIB/$APPLICATION_NAME.jar:$LIB/screening.jar \
ch.systemsx.cisd.authentication.file.PasswordEditorCommand "$@" ch.systemsx.cisd.authentication.file.PasswordEditorCommand "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment