mirror of
https://github.com/dockersrc/alpine
synced 2026-06-30 17:45:53 -04:00
🐛 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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user