forked from irods/irods_client_nfsrods
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
22 lines (20 loc) · 750 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
if [ "$1" != "sha" ]; then
# Handle SSL/TLS cert.
if [ -f /nfsrods_ssl.crt ]; then
echo "Cert found for NFSRODS"
set +e
keytool -delete -noprompt -alias nfsrods -cacerts -storepass changeit
set -e
echo "Importing cert to OpenJDK keystore"
keytool -import -trustcacerts -cacerts -storepass changeit -noprompt -alias nfsrods -file /nfsrods_ssl.crt
echo "Done"
else
echo "Cert not found for NFSRODS - not importing"
fi
fi
exec java \
-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector \
-Dlog4j2.configurationFile=$NFSRODS_CONFIG_HOME/log4j.properties \
-Dlog4j.shutdownHookEnabled=false \
-jar /nfsrods.jar "$@"