diff --git a/refine b/refine index c28e08ceecc0..fcabf9ee88fa 100755 --- a/refine +++ b/refine @@ -94,7 +94,7 @@ check_running() { check_downloaders URL="http://${REFINE_HOST_INTERNAL}:${REFINE_PORT}/" CHECK_STR="OpenRefine" - URL_LOCAL="http://127.0.0.1" + if [ "$CURL" ] ; then curl --noproxy 127.0.0.1 -s -S -f $URL > /dev/null 2>&1 @@ -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 @@ -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