Have curl fail on all HTTP errors - fixes #481
This commit is contained in:
parent
10bd7e3b75
commit
a3b4950b78
4
refine
4
refine
@ -151,8 +151,8 @@ check_running() {
|
|||||||
CHECK_STR="<title>OpenRefine</title>"
|
CHECK_STR="<title>OpenRefine</title>"
|
||||||
|
|
||||||
if [ "$CURL" ] ; then
|
if [ "$CURL" ] ; then
|
||||||
curl -s -S $URL > /dev/null 2>&1
|
curl -s -S -f $URL > /dev/null 2>&1
|
||||||
if [ "$?" = "7" ] ; then
|
if [ "$?" = "7" ] || [ "$?" = "22" ] ; then
|
||||||
NOT_RUNNING="1"
|
NOT_RUNNING="1"
|
||||||
fi
|
fi
|
||||||
elif [ "$WGET" ] ; then
|
elif [ "$WGET" ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user