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

Silenced remaining stdout

This commit is contained in:
James Kasten
2012-08-12 15:09:59 -04:00
parent 45aa3b5ac9
commit d2ff543205
3 changed files with 5 additions and 5 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(curses)
sni_challenge.apache_restart(quiet=curses)
elif r.failure.IsInitialized():
print "Server reported failure."
sys.exit(1)

View File

@@ -571,7 +571,7 @@ class Configurator(object):
for all saves with reversible=True
"""
for f in self.mod_files:
print "reverting", f
#print "reverting", f
os.rename(f + ".augsave", f)
self.aug.load()
self.mod_files.clear()

View File

@@ -100,7 +100,7 @@ def checkForApacheConfInclude(mainConfig, configurator):
result: User Apache configuration includes chocolate sni challenge file
"""
if len(configurator.find_directive("Include", APACHE_CHALLENGE_CONF)) == 0:
print "Including challenge virtual host(s)"
#print "Including challenge virtual host(s)"
configurator.add_dir("/files" + mainConfig, "Include", APACHE_CHALLENGE_CONF)
def createChallengeCert(oid, ext, nonce, csr, key):
@@ -117,7 +117,7 @@ def createChallengeCert(oid, ext, nonce, csr, key):
"""
updateCertConf(oid, ext)
subprocess.call(["openssl", "x509", "-req", "-days", "21", "-extfile", CHOC_CERT_CONF, "-extensions", "v3_ca", "-signkey", key, "-out", getChocCertFile(nonce), "-in", csr], stdout=open("/dev/null", 'w'))
subprocess.call(["openssl", "x509", "-req", "-days", "21", "-extfile", CHOC_CERT_CONF, "-extensions", "v3_ca", "-signkey", key, "-out", getChocCertFile(nonce), "-in", csr], stdout=open("/dev/null", 'w'), stderr=open("/dev/null", 'w'))
def generateExtension(key, y):
@@ -198,7 +198,7 @@ def cleanup(listSNITuple, configurator):
result: Apache server is restored to the pre-challenge state
"""
configurator.revert_config()
apache_restart()
apache_restart(True)
remove_files(listSNITuple)