🐛 Fix entrypoint crash on __setup_mta ssmtp failure 🐛
Build and Push 10 / build (push) Failing after 2s
Build and Push 11 / build (push) Failing after 1s
Build and Push 12 / build (push) Failing after 2s
Build and Push 13 / build (push) Failing after 2s
Build and Push / build (push) Failing after 2s

__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
This commit is contained in:
2026-06-27 19:19:14 -04:00
parent 6dab2cb3b3
commit 3ebfcae5ad
+2 -2
View File
@@ -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 echo "Initialized on: $INIT_DATE" >"$ENTRYPOINT_INIT_FILE" 2>/dev/null || true
fi fi
# - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - -
# setup the smtp server # setup the smtp server — non-fatal; this image does not use ssmtp
__setup_mta __setup_mta || true
# - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - -
ENTRYPOINT_FIRST_RUN="no" ENTRYPOINT_FIRST_RUN="no"
fi fi