mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Fixed the find exe condition
This commit is contained in:
@@ -144,9 +144,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
|
||||
"""
|
||||
# Verify Apache is installed
|
||||
for exe in constants.os_constant("restart_cmd")[0]:
|
||||
if not le_util.exe_exists(exe):
|
||||
raise errors.NoInstallationError
|
||||
if not le_util.exe_exists(constants.os_constant("restart_cmd")[0]):
|
||||
raise errors.NoInstallationError
|
||||
|
||||
# Make sure configuration is valid
|
||||
self.config_test()
|
||||
|
||||
Reference in New Issue
Block a user