From 4bec284546e779edcdbfa85a90cc9fa84016370e Mon Sep 17 00:00:00 2001 From: Stefan - Zipkid - Goethals Date: Fri, 4 Oct 2024 13:11:08 +0200 Subject: [PATCH] Run custom scripts in filename order too --- puppetserver/docker-entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/puppetserver/docker-entrypoint.sh b/puppetserver/docker-entrypoint.sh index 1a16c6f19..47c50b2fd 100755 --- a/puppetserver/docker-entrypoint.sh +++ b/puppetserver/docker-entrypoint.sh @@ -12,8 +12,10 @@ if [ -d /docker-custom-entrypoint.d/ ]; then find /docker-custom-entrypoint.d/ -type f -name "*.sh" \ -exec chmod +x {} \; sync - find /docker-custom-entrypoint.d/ -type f -name "*.sh" \ - -exec echo Running {} \; -exec {} \; + for f in /docker-custom-entrypoint.d/*.sh; do + echo "Running $f" + "$f" + done fi exec /opt/puppetlabs/bin/puppetserver "$@"