Update entrypoint.sh

This commit is contained in:
Alexandre GIRARD 2024-07-15 10:38:15 +02:00 committed by GitHub
parent a1b5d0a0f6
commit 6992403196
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,11 +14,11 @@ if [[ -z "${SONAR_HOST_URL}" ]]; then
fi
if [[ -n "${SONAR_ROOT_CERT}" ]]; then
echo "Adding custom root certificate to java certificate store"
rm -f /tmp/tmpcert.pem
echo "${SONAR_ROOT_CERT}" > /tmp/tmpcert.pem
#echo "Adding custom root certificate to java certificate store"
#rm -f /tmp/tmpcert.pem
#echo "${SONAR_ROOT_CERT}" > /tmp/tmpcert.pem
#keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias sonarqube -file /tmp/tmpcert.pem
keytool -J-Duser.language=en -noprompt -trustcacerts -keystore /usr/local/openjdk-17/lib/security/cacerts -storepass changeit -alias sonarqube -import -file /tmp/tmpcert.pem
#keytool -J-Duser.language=en -noprompt -trustcacerts -keystore /usr/local/openjdk-17/lib/security/cacerts -storepass changeit -alias sonarqube -import -file /tmp/tmpcert.pem
fi
if [[ -f "${INPUT_PROJECTBASEDIR%/}pom.xml" ]]; then