remove useless code
This commit is contained in:
parent
48c45e8742
commit
ecff42f077
@ -15,30 +15,24 @@ case "${start_line[2]}" in
|
|||||||
"/healthz/startupProbe")
|
"/healthz/startupProbe")
|
||||||
if pidof -q openconnect && pidof -q tcpproxy; then
|
if pidof -q openconnect && pidof -q tcpproxy; then
|
||||||
respond "200 OK"
|
respond "200 OK"
|
||||||
# printf "%s 200 OK\r\n" "${start_line[2]}"
|
|
||||||
else
|
else
|
||||||
respond "503 Service Unavailable"
|
respond "503 Service Unavailable"
|
||||||
# printf "%s 503 Service Unavailable\r\n" "${start_line[2]}"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"/healthz/livenessProbe" | "/healthz/readinessProbe")
|
"/healthz/livenessProbe" | "/healthz/readinessProbe")
|
||||||
if pidof -q openconnect && pidof -q tcpproxy && cmp <(ncat localhost 1234 -c "/usr/bin/printf '\x30\x0c\x02\x01\x01\x60\x07\x02\x01\x03\x04\x00\x80\x00'; timeout --preserve-status 1 cat >&2" 2>&1) <(printf "\x30\x0c\x02\x01\x01\x61\x07\x0a\x01\x00\x04\x00\x04\x00"); then
|
if pidof -q openconnect && pidof -q tcpproxy && cmp <(ncat localhost 1234 -c "/usr/bin/printf '\x30\x0c\x02\x01\x01\x60\x07\x02\x01\x03\x04\x00\x80\x00'; timeout --preserve-status 1 cat >&2" 2>&1) <(printf "\x30\x0c\x02\x01\x01\x61\x07\x0a\x01\x00\x04\x00\x04\x00"); then
|
||||||
respond "200 OK"
|
respond "200 OK"
|
||||||
# printf "%s 200 OK\r\n" "${start_line[2]}"
|
|
||||||
else
|
else
|
||||||
respond "503 Service Unavailable"
|
respond "503 Service Unavailable"
|
||||||
# printf "%s 503 Service Unavailable\r\n" "${start_line[2]}"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
respond "404 Not Found"
|
respond "404 Not Found"
|
||||||
# printf "%s 404 Not Found\r\n" "${start_line[2]}"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
respond "405 Method Not Allowed"
|
respond "405 Method Not Allowed"
|
||||||
# printf "%s 405 Method Not Allowed\r\n" "${start_line[2]}"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user