mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-25 12:52:04 +00:00
Compare commits
3 Commits
1d71c75a24
...
0c25f301ee
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c25f301ee | |||
| c21350f15e | |||
| af43433b77 |
@ -203,7 +203,11 @@ check-http(){
|
|||||||
if [ "$(grep "$status_pattern" <<<$response)" ] ; then
|
if [ "$(grep "$status_pattern" <<<$response)" ] ; then
|
||||||
response=OK
|
response=OK
|
||||||
else
|
else
|
||||||
response="ERROR ($response)"
|
if [ -z $response ] ; then
|
||||||
|
response='ERROR: TIMEOUT'
|
||||||
|
else
|
||||||
|
response="ERROR ($response)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $response
|
echo $response
|
||||||
@ -219,6 +223,7 @@ 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