🐛 Fix entrypoint crash on __setup_mta ssmtp failure 🐛
Build and Push 3.14 / build (push) Failing after 3s
Build and Push 3.15 / build (push) Failing after 2s
Build and Push 3.16 / build (push) Failing after 3s
Build and Push 3.17 / build (push) Failing after 1s
Build and Push 3.18 / build (push) Failing after 2s
Build and Push 3.19 / build (push) Failing after 2s
Build and Push 3.20 / build (push) Failing after 2s
Build and Push 3.21 / build (push) Failing after 2s
Build and Push 3.22 / build (push) Failing after 2s
Build and Push 3.23 / build (push) Failing after 2s
Build and Push / build (push) Failing after 2s
Build and Push edge / 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:17 -04:00
parent a44ff7ae7b
commit fdc71f7d74
+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