From 3ebfcae5ad07a5b97eabc361635d398bc0957376 Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 27 Jun 2026 19:19:14 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20entrypoint=20crash=20on=20?= =?UTF-8?q?=5F=5Fsetup=5Fmta=20ssmtp=20failure=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit __setup_mta calls __find_replace on /etc/ssmtp/revaliases which returns 1 when the symlink it creates is broken. With set -o pipefail active the non-zero return kills the entire entrypoint before any command can run. ssmtp is not installed in this image and email delivery is not a feature of this image, so the MTA setup failure is irrelevant. Guard the call with || true so initialization continues regardless. - rootfs/usr/local/bin/entrypoint.sh: __setup_mta || true (non-fatal) rootfs/usr/local/bin/entrypoint.sh --- rootfs/usr/local/bin/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index 817b654..c138690 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -422,8 +422,8 @@ if [ "$ENTRYPOINT_FIRST_RUN" != "no" ] || [ "$CONFIG_DIR_INITIALIZED" = "no" ] | echo "Initialized on: $INIT_DATE" >"$ENTRYPOINT_INIT_FILE" 2>/dev/null || true fi # - - - - - - - - - - - - - - - - - - - - - - - - - - # setup the smtp server - __setup_mta + # setup the smtp server — non-fatal; this image does not use ssmtp + __setup_mta || true # - - - - - - - - - - - - - - - - - - - - - - - - - ENTRYPOINT_FIRST_RUN="no" fi