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
@@ -138,6 +138,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
""" """
# Verify Apache is installed # Verify Apache is installed
for exe in (self.conf("ctl"), self.conf("enmod"), self.conf("dismod")): for exe in (self.conf("ctl"), self.conf("enmod"), self.conf("dismod")):
if exe != None:
if not le_util.exe_exists(exe): if not le_util.exe_exists(exe):
raise errors.NoInstallationError raise errors.NoInstallationError