Created
May 31, 2018 06:03
-
-
Save prafull01/df6c2ab2a7e7a88d2b02b057f1c79baf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
errorExit() { | |
echo "*** $*" 1>&2 | |
exit 1 | |
} | |
curl --silent --max-time 2 --insecure https://localhost:6443/ -o /dev/null || errorExit "Error GET https://localhost:6443/" | |
if ip addr | grep -q <VIRTUAL-IP>; then | |
curl --silent --max-time 2 --insecure https://<VIRTUAL-IP>:6443/ -o /dev/null || errorExit "Error GET https://<VIRTUAL-IP>:6443/" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment