use python not curl

This commit is contained in:
Brad Warren 2019-01-07 17:16:47 -08:00
parent c3c202e59f
commit 85332cadf8

View file

@ -4,7 +4,7 @@
# with each of the "passing" conf files.
SERVER="${SERVER:-http://localhost:4000/directory}"
if ! curl "$SERVER" >/dev/null 2>&1; then
if ! python -c "import requests; requests.get('$SERVER')"; then
echo "ACME server not found."
echo "Please set SERVER to the ACME server's directory URL."
exit 1