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:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user