mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
Fix #1281: Check if nginx binary exists
This commit is contained in:
@@ -107,6 +107,10 @@ class NginxConfigurator(common.Plugin):
|
|||||||
# This is called in determine_authenticator and determine_installer
|
# This is called in determine_authenticator and determine_installer
|
||||||
def prepare(self):
|
def prepare(self):
|
||||||
"""Prepare the authenticator/installer."""
|
"""Prepare the authenticator/installer."""
|
||||||
|
# Verify Nginx is installed
|
||||||
|
if not le_util.exe_exists(self.conf('ctl')):
|
||||||
|
raise errors.NoInstallationError
|
||||||
|
|
||||||
self.parser = parser.NginxParser(
|
self.parser = parser.NginxParser(
|
||||||
self.conf('server-root'), self.mod_ssl_conf)
|
self.conf('server-root'), self.mod_ssl_conf)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user