Skip to content

Commit

Permalink
DOCKER-448 - healthcheck when using shared secret
Browse files Browse the repository at this point in the history
  • Loading branch information
wimfabri committed Mar 29, 2024
1 parent 48a491f commit 4d0847a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upstream/solr6/local/91-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ if [ $ALFRESCO_SSL != none ] && [ $ALFRESCO_SSL != secret ]; then
openssl pkcs12 -in "${SOLR_DIR_ROOT}/keystore/browser.p12" -out "${SOLR_DIR_ROOT}/keystore/browser.pem" -nodes -passin pass:alfresco
fi
echo "status=\$(curl -f -k -L -w %{http_code} -s -E ${SOLR_DIR_ROOT}/keystore/browser.pem -o /dev/null https://localhost:${PORT}/solr/${DEFAULT_CORES_ALFRESCO[0]}/admin/ping)" >>${SOLR_INSTALL_HOME}/healthcheck.sh
elif [ $ALFRESCO_SSL == secret ]; then
echo "status=\$(curl -f -L -w %{http_code} -s -o /dev/null -H \"X-Alfresco-Search-Secret: \${ALFRESCO_SECRET}\" http://localhost:${PORT}/solr/${DEFAULT_CORES_ALFRESCO[0]}/admin/ping)" >>${SOLR_INSTALL_HOME}/healthcheck.sh
else
echo "status=\$(curl -f -L -w %{http_code} -s -o /dev/null http://localhost:${PORT}/solr/${DEFAULT_CORES_ALFRESCO[0]}/admin/ping)" >>${SOLR_INSTALL_HOME}/healthcheck.sh
fi
Expand Down

0 comments on commit 4d0847a

Please sign in to comment.