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

Change passwd.sh such that it can also password cache files.

SVN: 28192
parent aab1ba1f
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,14 @@ source `dirname "$0"`/setup-env ...@@ -15,6 +15,14 @@ source `dirname "$0"`/setup-env
APPLICATION_NAME=openbis APPLICATION_NAME=openbis
name=`basename "$0"`
if [[ "$name" == *cache* ]]; then
pwd_prop="-DPASSWORD_CACHE_FILE=etc/passwd_cache"
else
pwd_prop="-DPASSWORD_FILE=etc/passwd"
fi
# #
# change to installation directory # change to installation directory
# #
...@@ -35,4 +43,4 @@ LIB=webapps/$APPLICATION_NAME/WEB-INF/lib ...@@ -35,4 +43,4 @@ LIB=webapps/$APPLICATION_NAME/WEB-INF/lib
# Build classpath from $LIB content. # Build classpath from $LIB content.
CP=`echo $LIB/*.jar | sed 's/ /:/g'` CP=`echo $LIB/*.jar | sed 's/ /:/g'`
$JVM -cp $CP ch.systemsx.cisd.authentication.file.PasswordEditorCommand "$@" $JVM $pwd_prop -cp $CP 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