Loading entrypoint.py +3 −2 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ Entrypoint script for the Postfix Docker image from __future__ import annotations import sys from collections.abc import Iterator from os import environ from os import execv Loading Loading @@ -34,7 +35,7 @@ def as_arguments(options: dict[str, str]) -> Iterator[str]: yield f"{name}={value}" if len(argv) > 1: if len(argv) > 1 and not argv[1].startswith("-"): execvp(argv[1], argv[1:]) if (hostname := environ.get("MTA_HOSTNAME")): Loading @@ -46,4 +47,4 @@ with MAIN_CONF.open("x", encoding=ENCODING, errors=ERRORS) as conf: conf.write("\n") # Ensure the last line is terminated run(["/usr/sbin/postconf", *as_arguments(options)]) execv("/usr/lib/postfix/sbin/master", ["master", "-i"]) execv("/usr/lib/postfix/sbin/master", ["master", "-i"] + sys.argv[1:]) Loading
entrypoint.py +3 −2 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ Entrypoint script for the Postfix Docker image from __future__ import annotations import sys from collections.abc import Iterator from os import environ from os import execv Loading Loading @@ -34,7 +35,7 @@ def as_arguments(options: dict[str, str]) -> Iterator[str]: yield f"{name}={value}" if len(argv) > 1: if len(argv) > 1 and not argv[1].startswith("-"): execvp(argv[1], argv[1:]) if (hostname := environ.get("MTA_HOSTNAME")): Loading @@ -46,4 +47,4 @@ with MAIN_CONF.open("x", encoding=ENCODING, errors=ERRORS) as conf: conf.write("\n") # Ensure the last line is terminated run(["/usr/sbin/postconf", *as_arguments(options)]) execv("/usr/lib/postfix/sbin/master", ["master", "-i"]) execv("/usr/lib/postfix/sbin/master", ["master", "-i"] + sys.argv[1:])