Compare commits
2 Commits
11516b1a6e
...
d4ef8b6b7c
Author | SHA1 | Date | |
---|---|---|---|
d4ef8b6b7c | |||
![]() |
29e4912a95 |
2
main.py
2
main.py
@ -37,7 +37,7 @@ while True:
|
|||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
mongo_hosts = mongo.hosts
|
mongo_hosts = mongo.hosts
|
||||||
for host in get_hosts():
|
for host in get_hosts():
|
||||||
if now() + datetime.timedelta(days=14) > mongo_hosts[host]["expire_time"]:
|
if now + datetime.timedelta(days=14) > mongo_hosts[host]["expire_time"]:
|
||||||
update_host(host)
|
update_host(host)
|
||||||
print(f"Host {host} updated")
|
print(f"Host {host} updated")
|
||||||
minio.put_object("certupdater", "nginx.conf", )
|
minio.put_object("certupdater", "nginx.conf", )
|
||||||
|
Loading…
Reference in New Issue
Block a user