Compare commits
No commits in common. "41dea632432bbe541b4a044811bb2bec33cded9f" and "ee9c363b56772357ee69b3ee527034861c34d1bb" have entirely different histories.
41dea63243
...
ee9c363b56
5
main.py
5
main.py
@ -1,5 +1,4 @@
|
||||
import datetime
|
||||
import io
|
||||
import subprocess
|
||||
import time
|
||||
from configurator import configurator
|
||||
@ -58,8 +57,8 @@ def update_host(host: str) -> bool:
|
||||
|
||||
fullchain = fullchain_command.out.encode("utf-8")
|
||||
privkey = privkey_command.out.encode("utf-8")
|
||||
minio.put_object("certupdater", f"certificates/{host}/fullchain.pem", io.BytesIO(fullchain), len(fullchain))
|
||||
minio.put_object("certupdater", f"certificates/{host}/privkey.pem", io.BytesIO(privkey), len(privkey))
|
||||
minio.put_object("certupdater", f"certificates/{host}/fullchain.pem", fullchain, len(fullchain))
|
||||
minio.put_object("certupdater", f"certificates/{host}/privkey.pem", privkey, len(privkey))
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user