Make sure mod_ssl_conf exists so it can be parsed

This commit is contained in:
Brad Warren
2016-08-16 19:04:05 -07:00
parent 971d6d7540
commit 5ec22438ff
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -117,6 +117,8 @@ class NginxConfigurator(common.Plugin):
# Make sure configuration is valid
self.config_test()
# temp_install must be run before creating the NginxParser
temp_install(self.mod_ssl_conf)
self.parser = parser.NginxParser(
self.conf('server-root'), self.mod_ssl_conf)
@@ -124,8 +126,6 @@ class NginxConfigurator(common.Plugin):
if self.version is None:
self.version = self.get_version()
temp_install(self.mod_ssl_conf)
# Entry point in main.py for installing cert
def deploy_cert(self, domain, cert_path, key_path,
chain_path=None, fullchain_path=None):
@@ -7,7 +7,6 @@ export PATH="/usr/sbin:$PATH" # /usr/sbin/nginx
nginx_root="$root/nginx"
mkdir $nginx_root
root="$nginx_root" ./certbot-nginx/tests/boulder-integration.conf.sh > $nginx_root/nginx.conf
cp certbot-nginx/certbot_nginx/options-ssl-nginx.conf "$root"/conf
killall nginx || true
nginx -c $nginx_root/nginx.conf