mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
cli_command should sometimes be certbot-auto
This commit is contained in:
parent
fa61addb15
commit
86cb5b68e3
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ helpful_parser = None
|
|||
# fails safely
|
||||
|
||||
LEAUTO = "letsencrypt-auto"
|
||||
if "CERTBOT_AUTO" in os.environ:
|
||||
# if we're here, this is probably going to be certbot-auto, unless the
|
||||
# user saved the script under a different name
|
||||
LEAUTO = os.path.basename(os.environ["CERTBOT_AUTO"])
|
||||
|
||||
fragment = os.path.join(".local", "share", "letsencrypt")
|
||||
cli_command = LEAUTO if fragment in sys.argv[0] else "certbot"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue