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
@ -203,11 +203,7 @@ check-http(){
|
||||
if [ "$(grep "$status_pattern" <<<$response)" ] ; then
|
||||
response=OK
|
||||
else
|
||||
if [ -z $response ] ; then
|
||||
response='ERROR: TIMEOUT'
|
||||
else
|
||||
response="ERROR ($response)"
|
||||
fi
|
||||
response="ERROR ($response)"
|
||||
fi
|
||||
|
||||
echo $response
|
||||
@ -223,7 +219,6 @@ 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