mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 16:15:42 +02:00
Cleanup to get rid of scripts directory
This commit is contained in:
@@ -2,11 +2,6 @@
|
||||
certs within lineages of successor certificates, according to
|
||||
configuration."""
|
||||
|
||||
# os.path.islink
|
||||
# os.readlink
|
||||
# os.path.dirname / os.path.basename
|
||||
# os.path.join
|
||||
|
||||
# TODO: sanity checking consistency, validity, freshness?
|
||||
|
||||
# TODO: call new installer API to restart servers after deployment
|
||||
@@ -87,6 +82,11 @@ def renew(cert, old_version):
|
||||
|
||||
def main(config=DEFAULTS):
|
||||
"""main function for autorenewer script."""
|
||||
# TODO: Distinguish automated invocation from manual invocation,
|
||||
# perhaps by looking at sys.argv[0] and inhibiting automated
|
||||
# invocations if /etc/letsencrypt/renewal.conf defaults have
|
||||
# turned it off. (The boolean parameter should probably be
|
||||
# called renewer_enabled.)
|
||||
for i in os.listdir(config["renewal_configs_dir"]):
|
||||
print "Processing", i
|
||||
if not i.endswith(".conf"):
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Let's Encrypt certificate renewer command-line / cron script."""
|
||||
|
||||
import configobj
|
||||
|
||||
from letsencrypt.client import renewer
|
||||
|
||||
DEFAULTS = configobj.ConfigObj("renewal.conf")
|
||||
DEFAULTS["renewal_configs_dir"] = "/tmp/etc/letsencrypt/configs"
|
||||
DEFAULTS["official_archive_dir"] = "/tmp/etc/letsencrypt/archive"
|
||||
DEFAULTS["live_dir"] = "/tmp/etc/letsencrypt/live"
|
||||
|
||||
if __name__ == 'main':
|
||||
if ("renewer_enabled" in DEFAULTS
|
||||
and not DEFAULTS.as_bool("renewer_enabled")):
|
||||
print "Renewer is disabled by configuration! Exiting."
|
||||
raise SystemExit
|
||||
else:
|
||||
renewer.main()
|
||||
Reference in New Issue
Block a user