Commit 5cb11484 authored by Daniel Seybold's avatar Daniel Seybold

added cert file

parent f2e265ba
Pipeline #46253 passed with stage
in 8 minutes and 16 seconds
......@@ -60,6 +60,21 @@ function init(){
##############################################################################
function addCertificate(){
CERT_FILE="/tmp/mowgli.crt"
if [ -f "$CERT_FILE" ];
then
echo "Found certificate file! Adding certificate to java keystore!"
keytool -import -trustcacerts -keystore /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mowgli.crt
else
echo "Found no certificate file under /tmp/certificates/mowgli.crt ! Skipping add certificate step!"
fi
}
function checkDatabase(){
echo "Checking MariaDB databases:"
......@@ -68,6 +83,9 @@ function checkDatabase(){
function colosseum_service(){
echo "adding certificate files to Java keystore..."
addCertificate
echo "starting colosseum..."
#delete PID file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment