mirror of
https://github.com/certbot/certbot.git
synced 2026-06-11 01:30:14 -04:00
Fixed the find exe condition
This commit is contained in:
parent
ab069741f2
commit
3fadfb5444
1 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue