mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Fix #1281: Check if nginx binary exists
This commit is contained in:
parent
6fbcebd4ab
commit
414321fca6
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ class NginxConfigurator(common.Plugin):
|
|||
# This is called in determine_authenticator and determine_installer
|
||||
def prepare(self):
|
||||
"""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.conf('server-root'), self.mod_ssl_conf)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue