1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Fixed small subprocess call error, silenced final reload

This commit is contained in:
James Kasten
2012-08-12 13:09:34 -04:00
parent 8db9b8bd1d
commit 9f08ec84c2
2 changed files with 2 additions and 2 deletions

View File

@@ -335,7 +335,7 @@ def authenticate():
#cert_chain_abspath = os.path.abspath(chain_file)
for host in vhost:
config.deploy_cert(host, os.path.abspath(cert_file), os.path.abspath(key_file), cert_chain_abspath)
sni_challenge.apache_restart()
sni_challenge.apache_restart(curses)
elif r.failure.IsInitialized():
print "Server reported failure."
sys.exit(1)

View File

@@ -363,7 +363,7 @@ class Configurator(object):
Checks apache2ctl to get loaded module list
"""
try:
p = subprocess.check_output(["sudo", "/usr/sbin/apache2ctl", "-M"], stdout=open("/dev/null", 'w'), stderr=open("/dev/null", 'w'))
p = subprocess.check_output(["sudo", "/usr/sbin/apache2ctl", "-M"], stderr=open("/dev/null", 'w'))
except:
print "Error accessing apache2ctl for loaded modules!"
print "This may be caused by an Apache Configuration Error"