mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Explain why Apache [appears] not to be installed
Would help debug #3244
This commit is contained in:
parent
4fa182ab71
commit
fd35a1c724
1 changed files with 4 additions and 2 deletions
|
|
@ -157,8 +157,10 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
raise errors.NoInstallationError("Problem in Augeas installation")
|
||||
|
||||
# Verify Apache is installed
|
||||
if not util.exe_exists(constants.os_constant("restart_cmd")[0]):
|
||||
raise errors.NoInstallationError
|
||||
restart_cmd = constants.os_constant("restart_cmd")[0]
|
||||
if not util.exe_exists(restart_cmd):
|
||||
raise errors.NoInstallationError(
|
||||
'Cannot find Apache install ({0} not in PATH)'.format(restart_cmd))
|
||||
|
||||
# Make sure configuration is valid
|
||||
self.config_test()
|
||||
|
|
|
|||
Loading…
Reference in a new issue