mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-25 12:52:04 +00:00
Compare commits
No commits in common. "0c25f301ee0238a09248253854a815228fc6cb3a" and "1d71c75a244348478674d345fc6dcaa65acf7604" have entirely different histories.
0c25f301ee
...
1d71c75a24
@ -202,13 +202,9 @@ check-http(){
|
|||||||
|
|
||||||
if [ "$(grep "$status_pattern" <<<$response)" ] ; then
|
if [ "$(grep "$status_pattern" <<<$response)" ] ; then
|
||||||
response=OK
|
response=OK
|
||||||
else
|
|
||||||
if [ -z $response ] ; then
|
|
||||||
response='ERROR: TIMEOUT'
|
|
||||||
else
|
else
|
||||||
response="ERROR ($response)"
|
response="ERROR ($response)"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
echo $response
|
echo $response
|
||||||
}
|
}
|
||||||
@ -223,7 +219,6 @@ check(){
|
|||||||
# NOTE: we are preserving whitespace here...
|
# NOTE: we are preserving whitespace here...
|
||||||
local comment=`sed \
|
local comment=`sed \
|
||||||
-e 's/^\(.*\)\('"$PROTOCOLS"'\):\/\/.*$/\1/' \
|
-e 's/^\(.*\)\('"$PROTOCOLS"'\):\/\/.*$/\1/' \
|
||||||
-e 's/\s*$//' \
|
|
||||||
<<<$1`
|
<<<$1`
|
||||||
local target=`sed \
|
local target=`sed \
|
||||||
-e 's/^.*\s*\(\('"$PROTOCOLS"'\):\/\/\)/\1/' \
|
-e 's/^.*\s*\(\('"$PROTOCOLS"'\):\/\/\)/\1/' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user