From cc779ec04fed2011ea868cafa2ec1fa6ede1deea Mon Sep 17 00:00:00 2001 From: j4n Date: Mon, 16 Feb 2026 19:01:22 +0100 Subject: [PATCH] feat(cmdeploy): read CHATMAIL_INI env var for default --config path Avoids needing --config /etc/chatmail/chatmail.ini on every command inside the Docker container, where CHATMAIL_INI is already set. --- cmdeploy/src/cmdeploy/cmdeploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/cmdeploy.py b/cmdeploy/src/cmdeploy/cmdeploy.py index 91db914a..59232057 100644 --- a/cmdeploy/src/cmdeploy/cmdeploy.py +++ b/cmdeploy/src/cmdeploy/cmdeploy.py @@ -331,7 +331,7 @@ def add_config_option(parser): "--config", dest="inipath", action="store", - default=Path("chatmail.ini"), + default=Path(os.environ.get("CHATMAIL_INI", "chatmail.ini")), type=Path, help="path to the chatmail.ini file", )