mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Make sure mod_ssl_conf exists so it can be parsed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user