Skip to content

Commit

Permalink
Run custom scripts in filename order too
Browse files Browse the repository at this point in the history
  • Loading branch information
zipkid committed Oct 10, 2024
1 parent ddf7a2b commit 4bec284
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions puppetserver/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 4bec284

Please sign in to comment.