mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Handle exe checks for distros missing some of the helper scripts
This commit is contained in:
@@ -138,8 +138,9 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
"""
|
||||
# Verify Apache is installed
|
||||
for exe in (self.conf("ctl"), self.conf("enmod"), self.conf("dismod")):
|
||||
if not le_util.exe_exists(exe):
|
||||
raise errors.NoInstallationError
|
||||
if exe != None:
|
||||
if not le_util.exe_exists(exe):
|
||||
raise errors.NoInstallationError
|
||||
|
||||
# Make sure configuration is valid
|
||||
self.config_test()
|
||||
|
||||
Reference in New Issue
Block a user