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