mirror of
https://github.com/chatmail/relay.git
synced 2026-05-11 08:24:37 +00:00
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.
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user