fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 5s
Deploy Dev / Push (pull_request) Successful in 8s
Deploy Dev / Deploy dev (pull_request) Successful in 8s

This commit is contained in:
Egor Matveev 2025-06-02 00:19:08 +03:00
parent 08fd556c2c
commit 21d1008abe

View File

@ -1,4 +1,5 @@
import datetime
import io
import subprocess
import time
from configurator import configurator
@ -57,8 +58,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", fullchain, len(fullchain))
minio.put_object("certupdater", f"certificates/{host}/privkey.pem", privkey, len(privkey))
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))
return True