mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Merge pull request #3249 from certbot/apache-uinstalled-clarity
Explain why Apache [appears] not to be installed
This commit is contained in:
commit
e2a2b9914a
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