Contents of /trunk/sslexplorer/sslexplorer-install.sh
Parent Directory | Revision Log
Revision 675 -
(show annotations)
(download)
(as text)
Tue Aug 26 00:17:34 2008 UTC (16 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 952 byte(s)
Tue Aug 26 00:17:34 2008 UTC (16 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 952 byte(s)
-updated to run with 1.0.0_rc17
1 | #!/bin/bash |
2 | # $Header: /root/magellan-cvs/src/sslexplorer/sslexplorer-install.sh,v 1.5 2008-08-26 00:17:34 niro Exp $ |
3 | # sslexplorer install wrapper for version >= 1.0.0_rc17 |
4 | |
5 | SSLEXPLORER_ROOT=/opt/sslexplorer |
6 | MAINCLASS="com.sslexplorer.boot.Bootstrap" |
7 | |
8 | # setup classpath |
9 | CLASSPATH="${CLASSPATH}:${SSLEXPLORER_ROOT}/sslexplorer/build/boot" |
10 | CLASSPATH="${CLASSPATH}:${SSLEXPLORER_ROOT}/sslexplorer/conf" |
11 | |
12 | [[ ! -d ${SSLEXPLORER_ROOT}/sslexplorer/logs ]] && install -d ${SSLEXPLORER_ROOT}/sslexplorer/logs |
13 | [[ ! -d ${SSLEXPLORER_ROOT}/sslexplorer/tmp ]] && install -d ${SSLEXPLORER_ROOT}/sslexplorer/tmp |
14 | touch ${SSLEXPLORER_ROOT}/sslexplorer/logs/sslexplorer.log |
15 | |
16 | # install tools.jar from java-jdk |
17 | cp ${JAVA_HOME}/lib/tools.jar ${SSLEXPLORER_ROOT}/sslexplorer/lib/tools.jar |
18 | |
19 | # run install mode |
20 | cd ${SSLEXPLORER_ROOT}/sslexplorer |
21 | java -cp ${CLASSPATH} -Djava.library.path=${SSLEXPLORER_ROOT} ${MAINCLASS} --install --conf=${SSLEXPLORER_ROOT}/sslexplorer/conf |