Skip to content
Snippets Groups Projects
Verified Commit 65af65ea authored by Till Jasper Kraenke's avatar Till Jasper Kraenke Committed by Pascal Ernster
Browse files

Update docker-entrypoint.sh: Fix curl calls in running checks

parent 03e9f4c8
Loading
Pipeline #13330 failed
......@@ -27,7 +27,7 @@ while [ ${n} -lt 15 ]
do
# check Solr is running
if [ ${solr_running} -eq 0 ] ; then
solr_curl=$(curl --silent --connect-timeout 45 "http://${SOLR_HOST:-solr}:${SOLR_PORT:-8983}/solr/" | grep "Apache SOLR")
solr_curl=$(curl --fail --silent --connect-timeout 45 "http://${SOLR_HOST:-solr}:${SOLR_PORT:-8983}/solr/" | grep "Apache SOLR")
if [ -n "${solr_curl}" ] ; then
echo "Solr is running"
solr_running=1
......@@ -36,7 +36,7 @@ do
# check Fedora is running
if [ ${fedora_running} -eq 0 ] ; then
fedora_curl=$(curl --silent --connect-timeout 45 "http://${FEDORA_HOST:-fcrepo}:${FEDORA_PORT:-8080}/" | grep "Fedora Commons Repository")
fedora_curl=$(curl --fail --silent --connect-timeout 45 "http://${FEDORA_HOST:-fcrepo}:${FEDORA_PORT:-8080}${FCREPO_PATH:-/fcrepo/rest}" | grep -i -E "^\s*rdf:type\s+fedora:RepositoryRoot\s*;\s*$")
if [ -n "${fedora_curl}" ] ; then
echo "Fedora is running"
fedora_running=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment