From fcd23ac342b3cde814aa969285ec6b283b364abe Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 8 Jan 2019 15:58:41 -0800 Subject: [PATCH] require server be set --- .../certbot_apache/tests/apache-conf-files/apache-conf-test | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/certbot-apache/certbot_apache/tests/apache-conf-files/apache-conf-test b/certbot-apache/certbot_apache/tests/apache-conf-files/apache-conf-test index 7a974ada4..8bf3c2410 100755 --- a/certbot-apache/certbot_apache/tests/apache-conf-files/apache-conf-test +++ b/certbot-apache/certbot_apache/tests/apache-conf-files/apache-conf-test @@ -3,9 +3,7 @@ # A hackish script to see if the client is behaving as expected # with each of the "passing" conf files. -SERVER="${SERVER:-http://localhost:4000/directory}" -if ! python -c "import requests; requests.get('$SERVER')"; then - echo "ACME server not found." +if [ -z "$SERVER" ]; then echo "Please set SERVER to the ACME server's directory URL." exit 1 fi