Propagate the truth!
authorDan Scott <dscott@laurentian.ca>
Tue, 18 Jul 2017 00:34:24 +0000 (20:34 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 18 Jul 2017 00:34:24 +0000 (20:34 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/support-scripts/webserver_config.py

index 566d8b4..0b74e6c 100755 (executable)
@@ -204,7 +204,7 @@ def generate_config(test=True):
         f.write(sockets_conf)
 
     with open(os.path.join('nginx/sites-available', 'conifer.conf'), 'w') as f:
-        for host in mutate_test_hostnames():
+        for host in mutate_test_hostnames(test):
             f.write(server_block.format(hostname=host))
 
     with open(os.path.join('apache2/sites-available', 'conifer.conf'), 'w') as f:
@@ -213,7 +213,7 @@ def generate_config(test=True):
 def generate_certbot(test=True):
     """Generate certbot command"""
     certbot = 'certbot --nginx run '
-    for host in mutate_test_hostnames():
+    for host in mutate_test_hostnames(test):
         if host in missing_test_domains:
             continue
         certbot = certbot + " -d {hostname}".format(hostname=host)