Update entrypoint.sh

This commit is contained in:
Alexandre GIRARD 2023-05-12 15:20:10 +02:00 committed by GitHub
parent 0a2a042a39
commit 03c3ee8bbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ if [[ -n "${SONAR_ROOT_CERT}" ]]; then
rm -f /tmp/CA_MAIF_ROOTCA.pem
echo "${SONAR_ROOT_CERT}" > /tmp/CA_MAIF_ROOTCA.pem
keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/CA_MAIF_ROOTCA.pem
keytool -J-Duser.language=en -noprompt -trustcacerts -keystore /usr/local/openjdk-17/lib/security/cacerts -storepass changeit -alias CA_MAIF_ROOTCA -import -file /tmp/CA_MAIF_ROOTCA.pem
fi
if [[ -f "${INPUT_PROJECTBASEDIR%/}pom.xml" ]]; then