From 9fe86c411496402b066bb88ad2d15e2e6877dd1c Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Tue, 28 Oct 2025 17:17:34 -0500 Subject: [PATCH] support for a post-entrypoint script --- docker/scripts/entrypoint.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker/scripts/entrypoint.sh b/docker/scripts/entrypoint.sh index 8e0f8e3..253940f 100755 --- a/docker/scripts/entrypoint.sh +++ b/docker/scripts/entrypoint.sh @@ -27,6 +27,12 @@ applyPatch() { fi } +postEntrypoint() { + if [ -n "$POST" ] && [ -x post-entrypoint.sh ] ; then + ./post-entrypoint.sh + fi +} + changeDir() { if [ -n "$CD" ] then @@ -41,10 +47,9 @@ if [ ! -d "$DIR" ]; then fi cd "$DIR" && \ touch archery && \ -ls -al && \ checkoutCommit && \ applyPatch && \ sudo pacman -Syu --noconfirm --noprogressbar &&\ makepkg -smf --noconfirm --noprogressbar --skippgpcheck --noarchive && \ -ls -al +postEntrypoint exit $?;