diff --git a/src/common/usr/local/bin/docker-php-serversideup-entrypoint b/src/common/usr/local/bin/docker-php-serversideup-entrypoint index bbaad06f..879c4e44 100644 --- a/src/common/usr/local/bin/docker-php-serversideup-entrypoint +++ b/src/common/usr/local/bin/docker-php-serversideup-entrypoint @@ -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" @@ -67,4 +67,4 @@ if [ -f /tmp/docker_cmd_override ]; then else # Execute the CMD passed in from the Dockerfile exec "$@" -fi \ No newline at end of file +fi