Project

General

Profile

1 8480 tao
#!/bin/bash
2
#A mamanger script to help the Metacat administrator to manage the users and groups
3
#in the AuthFile mechanism.
4
5 8549 tao
echo "This script should be run at the directory of /tomcat-webapps/your-context/WEB-INF/WEB-INF/scripts/bash/."
6
7 8480 tao
#variables
8 8490 tao
#BASE=../../../build/war
9
#BASE_LIB=$BASE/lib
10
BASE=../../../
11
BASE_LIB=$BASE/WEB-INF/lib
12 8480 tao
BASE_WEB_INF=$BASE/WEB-INF
13
METACAT=$BASE_LIB/metacat.jar
14
COMMONS_CONFIG=$BASE_LIB/commons-configuration-1.7.jar
15
COMMONS_LOG=$BASE_LIB/commons-logging-api-1.1.jar
16
COMMONS_LANG=$BASE_LIB/commons-lang-2.6.jar
17
COMMONS_COLLECTION=$BASE_LIB/commons-collections-3.2.jar
18
COMMONS_JXPATH=$BASE_LIB/commons-jxpath-1.3.jar
19
LOG4J=$BASE_LIB/log4j-1.2.16.jar
20
UTILITIES=$BASE_LIB/utilities.jar
21
D1_COMMON=$BASE_LIB/d1_common_java-1.1.3.jar
22
XALAN=$BASE_LIB/xalan-2.7.0.jar
23
JBCRYPT=$BASE_LIB/jbcrypt-0.3m.jar
24
25
#run the class
26 8483 tao
java -cp $METACAT:$XALAN:$COMMONS_CONFIG:$COMMONS_LOG:$COMMONS_LANG:$COMMONS_COLLECTION:$COMMONS_JXPATH:$LOG4J:$UTILITIES:$D1_COMMON:$JBCRYPT edu.ucsb.nceas.metacat.authentication.AuthFile $BASE_WEB_INF "$@"