Adjusted script to use expanded Tomcat webapp
[java-idp.git] / bin / ArpUtil
1 #!/bin/sh
2
3 #The Shibboleth webapp root
4 if [ -z SHIB_ROOT ]
5         then
6                 SHIB_ROOT=/usr/local/tomcat/webapps/shibboleth
7 fi
8
9 #Where log4j config file is
10 LOG_CONFIG=$SHIB_ROOT/WEB-INF/conf/log4j.properties
11
12 #Where ARPs directory is
13 ARP_DIR=$SHIB_ROOT/arps
14
15 if [ -n JAVA_HOME ]
16         then
17                 $JAVA_HOME/bin/java -Dlog.config=$LOG_CONFIG -Darp.dir=$ARP_DIR -cp $SHIB_ROOT/WEB-INF/classes:$SHIB_ROOT/WEB-INF/lib/log4j-1.2.5.jar edu.internet2.middleware.shibboleth.aa.arpUtil.ArpUtil $@
18         else
19                 echo "JAVA_HOME not set."
20 fi