mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-11-29 00:33:02 +00:00
12 lines
357 B
Bash
Executable File
12 lines
357 B
Bash
Executable File
#!/bin/sh
|
|
|
|
errorExit() {
|
|
echo "*** $*" 1>&2
|
|
exit 1
|
|
}
|
|
|
|
curl --silent --max-time 2 --insecure https://localhost:8888/ -o /dev/null || errorExit "Error GET https://localhost:8888/"
|
|
if ip addr | grep -q 10.0.75.80; then
|
|
curl --silent --max-time 2 --insecure https://10.0.75.80:8888/ -o /dev/null || errorExit "Error GET https://10.0.75.80:8888/"
|
|
fi
|