Fix #1281: Check if nginx binary exists

This commit is contained in:
Chhatoi Pritam Baral 2015-11-11 04:50:16 +05:30
parent 6fbcebd4ab
commit 414321fca6

View file

@ -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)