mirror of
https://github.com/chatmail/relay.git
synced 2026-05-11 16:34:39 +00:00
18 lines
309 B
Python
18 lines
309 B
Python
import os
|
|
import importlib.resources
|
|
import pyinfra
|
|
from cmdeploy import deploy_chatmail
|
|
|
|
|
|
def main():
|
|
config_path = os.getenv(
|
|
"CHATMAIL_INI",
|
|
importlib.resources.files("cmdeploy").joinpath("../../../chatmail.ini"),
|
|
)
|
|
|
|
deploy_chatmail(config_path)
|
|
|
|
|
|
if pyinfra.is_cli:
|
|
main()
|