def prepare(self): """Prepare the authenticator/installer. :raises .errors.NoInstallationError: If Nginx ctl cannot be found :raises .errors.MisconfigurationError: If Nginx is misconfigured """ # Verify Nginx is installed if not le_util.exe_exists(self.conf("ctl")): raise errors.NoInstallationError # Make sure configuration is valid self.config_test() self.parser = parser.NginxParser(self.conf("server-root"), self.mod_ssl_conf) # Set Version if self.version is None: self.version = self.get_version() temp_install(self.mod_ssl_conf)
def prepare(self): """Prepare the authenticator/installer. :raises .errors.NoInstallationError: If Nginx ctl cannot be found :raises .errors.MisconfigurationError: If Nginx is misconfigured """ # Verify Nginx is installed if not le_util.exe_exists(self.conf('ctl')): raise errors.NoInstallationError # Make sure configuration is valid self.config_test() self.parser = parser.NginxParser( self.conf('server-root'), self.mod_ssl_conf) # Set Version if self.version is None: self.version = self.get_version() temp_install(self.mod_ssl_conf)
def _call(cls, exe): from certbot.le_util import exe_exists return exe_exists(exe)