mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
add check to make sure we're getting a version
This commit is contained in:
parent
93298cd98e
commit
033df6a5b5
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ import sys
|
|||
|
||||
|
||||
def main(openssl_version, apache_version):
|
||||
if not openssl_version.strip():
|
||||
raise Exception("No OpenSSL version found.")
|
||||
if not apache_version.strip():
|
||||
raise Exception("No Apache version found.")
|
||||
conf_file_location = "/etc/letsencrypt/options-ssl-apache.conf"
|
||||
with open(conf_file_location) as f:
|
||||
contents = f.read()
|
||||
|
|
|
|||
Loading…
Reference in a new issue