Skip to content

Commit

Permalink
Fixed issue with entrypoint execution order (Fixes #470)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Oct 17, 2024
1 parent b058f26 commit f6c1968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/usr/local/bin/docker-php-serversideup-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export S6_INITIALIZED
# execute the CMD passed in from the Dockerfile.

# Execute scripts from /etc/entrypoint.d/ in numeric order
find /etc/entrypoint.d/ -type f -name '*.sh' | sort -n -t- -k1 | while IFS= read -r f; do
find /etc/entrypoint.d/ -type f -name '*.sh' | sort -V | while IFS= read -r f; do
if [ -e "$f" ]; then
if [ "$LOG_OUTPUT_LEVEL" = "debug" ]; then
echo "Executing $f"
Expand Down Expand Up @@ -67,4 +67,4 @@ if [ -f /tmp/docker_cmd_override ]; then
else
# Execute the CMD passed in from the Dockerfile
exec "$@"
fi
fi

0 comments on commit f6c1968

Please sign in to comment.