summaryrefslogtreecommitdiffstats
path: root/pki/base/ocsp/shared/conf/tomcat5.conf
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/ocsp/shared/conf/tomcat5.conf')
-rw-r--r--pki/base/ocsp/shared/conf/tomcat5.conf55
1 files changed, 29 insertions, 26 deletions
diff --git a/pki/base/ocsp/shared/conf/tomcat5.conf b/pki/base/ocsp/shared/conf/tomcat5.conf
index fa183150..c1753943 100644
--- a/pki/base/ocsp/shared/conf/tomcat5.conf
+++ b/pki/base/ocsp/shared/conf/tomcat5.conf
@@ -5,19 +5,10 @@
#
# tomcat5 service configuration file
-# Check to insure that at least one PKI subsystem
-# currently resides on this system.
-if [ ! -x /usr/bin/pkiarch ] ||
- [ ! -x /usr/bin/pkiflavor ] ||
- [ ! -x /usr/bin/pkiname ]; then
- echo "This machine is missing all PKI subsystems!"
- exit 255
-fi
-
# Check to insure that this configuration file's associated PKI
# subsystem currently resides on this system.
PKI_SUBSYSTEM_TYPE=[PKI_SUBSYSTEM_TYPE]
-if [ ! -d /usr/share/`pkiflavor`/${PKI_SUBSYSTEM_TYPE} ] ; then
+if [ ! -d /usr/share/pki/${PKI_SUBSYSTEM_TYPE} ] ; then
echo "This machine is missing the '${PKI_SUBSYSTEM_TYPE}' subsystem!"
exit 255
fi
@@ -58,21 +49,33 @@ SHUTDOWN_WAIT=30
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)
-PLATFORM=`pkiarch`
+OS=`uname -s`
+PLATFORM=""
-if [ $PLATFORM = "i386" ]; then
- # 32-bit Linux
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/dirsec:/usr/lib
-elif [ $PLATFORM = "x86_64" ]; then
- # 64-bit Linux
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/dirsec:/usr/lib64:/usr/lib
-elif [ $PLATFORM = "sparc" ]; then
- # 32-bit Solaris
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/dirsec:/usr/lib
-elif [ $PLATFORM = "sparcv9" ]; then
- # 64-bit Solaris
- JAVA_OPTS="-d64"
- export JAVA_OPTS
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/sparcv9/dirsec:/usr/lib/sparcv9:/usr/lib/dirsec:/usr/lib
+if [ $OS = "Linux" ]; then
+ PLATFORM=`uname -i`
+ if [ $PLATFORM = "i386" ]; then
+ # 32-bit Linux
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/dirsec:/usr/lib
+ elif [ $PLATFORM = "x86_64" ]; then
+ # 64-bit Linux
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/dirsec:/usr/lib64:/usr/lib
+ fi
+ export LD_LIBRARY_PATH
+elif [ $OS = "SunOS" ]; then
+ PLATFORM=`uname -p`
+ if [ "${PLATFORM}" = "sparc" ] &&
+ [ -d "/usr/lib/sparcv9/" ] ; then
+ PLATFORM="sparcv9"
+ fi
+ if [ $PLATFORM = "sparc" ]; then
+ # 32-bit Solaris
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/dirsec:/usr/lib
+ elif [ $PLATFORM = "sparcv9" ]; then
+ # 64-bit Solaris
+ JAVA_OPTS="-d64"
+ export JAVA_OPTS
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/sparcv9/dirsec:/usr/lib/sparcv9:/usr/lib/dirsec:/usr/lib
+ fi
+ export LD_LIBRARY_PATH
fi
-export LD_LIBRARY_PATH