mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-24 04:12:06 +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
|
||||
response=OK
|
||||
else
|
||||
response="ERROR ($response)"
|
||||
if [ -z $response ] ; then
|
||||
response='ERROR: TIMEOUT'
|
||||
else
|
||||
response="ERROR ($response)"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo $response
|
||||
@ -219,6 +223,7 @@ check(){
|
||||
# NOTE: we are preserving whitespace here...
|
||||
local comment=`sed \
|
||||
-e 's/^\(.*\)\('"$PROTOCOLS"'\):\/\/.*$/\1/' \
|
||||
-e 's/\s*$//' \
|
||||
<<<$1`
|
||||
local target=`sed \
|
||||
-e 's/^.*\s*\(\('"$PROTOCOLS"'\):\/\/\)/\1/' \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user