add check to make sure we're getting a version

This commit is contained in:
Erica Portnoy 2020-03-20 15:13:47 -07:00
parent 93298cd98e
commit 033df6a5b5

View file

@ -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()