Have curl fail on all HTTP errors - fixes #481

This commit is contained in:
Tom Morris 2013-03-03 18:19:31 -05:00
parent 10bd7e3b75
commit a3b4950b78

4
refine
View File

@ -151,8 +151,8 @@ check_running() {
CHECK_STR="<title>OpenRefine</title>"
if [ "$CURL" ] ; then
curl -s -S $URL > /dev/null 2>&1
if [ "$?" = "7" ] ; then
curl -s -S -f $URL > /dev/null 2>&1
if [ "$?" = "7" ] || [ "$?" = "22" ] ; then
NOT_RUNNING="1"
fi
elif [ "$WGET" ] ; then