Compare commits
No commits in common. "5b572b2e6681786f5b447b7bff9548b6ed915001" and "5efbd0e7fda0df998e12febff8711e04e99e059a" have entirely different histories.
5b572b2e66
...
5efbd0e7fd
4
main.py
4
main.py
@ -22,11 +22,11 @@ def call(command: str) -> Response:
|
|||||||
|
|
||||||
|
|
||||||
def get_hosts() -> list[str]:
|
def get_hosts() -> list[str]:
|
||||||
return list(set(configurator.get_config("hosts") + ["platform.develop.chocomarsh.com"]))
|
return list(set(configurator.get_config("hosts") + ["platform.chocomarsh.com"]))
|
||||||
|
|
||||||
|
|
||||||
def update_host(host: str):
|
def update_host(host: str):
|
||||||
gen_cert = call(f"docker exec -it $(docker ps -q -f name=infra-development_nginx) certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"")
|
gen_cert = call(f"docker exec -it $(docker ps -q -f name=infra_nginx) certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"")
|
||||||
if gen_cert.code != 0:
|
if gen_cert.code != 0:
|
||||||
print(f"failed generating certificate: {gen_cert.err}")
|
print(f"failed generating certificate: {gen_cert.err}")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user