1
0
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:
Joona Hoikkala
2015-12-05 18:53:13 +02:00
parent 6c905056d2
commit da5b980674

View File

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