Skip to content

Commit

Permalink
Checking running status of OpenRefine with wget will not work correctly
Browse files Browse the repository at this point in the history
OpenRefine#6622

Removed use of URL_LOCAL and added URL in place of URL_LOCAL
  • Loading branch information
dino2580 committed May 23, 2024
1 parent 24947a3 commit 4f051b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions refine
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ 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 +103,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 +113,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 4f051b8

Please sign in to comment.