mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
use python not curl
This commit is contained in:
parent
c3c202e59f
commit
85332cadf8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue