]> git.wh0rd.org Git - home.git/commitdiff
le-renew: fix display of revoke cmd
authorMike Frysinger <vapier@gentoo.org>
Sun, 25 Feb 2018 14:04:47 +0000 (09:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 25 Feb 2018 14:04:47 +0000 (09:04 -0500)
.bin/le-renew

index cc008aab58a62ce7ba773358050b13f2c731ae91..e7d4ec038ddc1d3299e65aed51784d83462fe004 100755 (executable)
@@ -148,10 +148,10 @@ def process_domain(domain, dry_run=False):
         # Try to revoke the old one.
         cmd = ['certbot', 'revoke', '--cert-path', cert_path]
         logging.info('%s: revoking old cert', domain)
-        logging.info('%s: %s', domain, cmd)
+        logging.info('%s: %s', domain, ' '.join(cmd))
         if not dry_run:
             try:
-                subprocess.check_call(cmd)
+                subprocess.check_call(cmd, stdin=open('/dev/null', 'r'))
             except subprocess.CalledProcessError:
                 logging.error('failed', exc_info=True)
     else: