Skip to content

Commit

Permalink
Checking running status of OpenRefine with wget will not work correct…
Browse files Browse the repository at this point in the history
  • Loading branch information
dino2580 authored May 23, 2024
1 parent 073d0e2 commit 679411a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions refine
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ check_running() {
check_downloaders
URL="http://${REFINE_HOST_INTERNAL}:${REFINE_PORT}/"
CHECK_STR="<title>OpenRefine</title>"
URL_LOCAL="http://127.0.0.1"

if [ "$CURL" ] ; then
curl --noproxy 127.0.0.1 -s -S -f $URL > /dev/null 2>&1
Expand All @@ -103,7 +102,7 @@ check_running() {
NOT_RUNNING="1"
fi
elif [ "$WGET" ] ; then
no_proxy=127.0.0.1 wget -O - $URL_LOCAL > /dev/null 2>&1
no_proxy=127.0.0.1 wget -O - $URL > /dev/null 2>&1
if [ "$?" = "4" ] ; then
NOT_RUNNING="1"
fi
Expand All @@ -113,7 +112,7 @@ check_running() {
if [ "$CURL" ] ; then
RUNNING=`curl --noproxy 127.0.0.1 -s $URL | grep "$CHECK_STR"`
elif [ "$WGET" ] ; then
RUNNING=`no_proxy=127.0.0.1 wget -O - $URL_LOCAL | grep "$CHECK_STR"`
RUNNING=`no_proxy=127.0.0.1 wget -O - $URL| grep "$CHECK_STR"`
fi

if [ -z "${RUNNING}" ] ; then
Expand Down

0 comments on commit 679411a

Please sign in to comment.