From 194a6cfa994f856b4bbf9c62ef9dd9f978508cc8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 17 Jul 2021 23:11:55 +1000 Subject: [PATCH] Add init-php.sh execution if it exists --- init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init b/init index 05742c4..5507453 100755 --- a/init +++ b/init @@ -136,6 +136,8 @@ if [ "${role}" = "app" -a -e artisan ]; then " fi + [ -e init-php.sh -a -x init-php.sh ] && su www-data -s /bin/sh "init-php.sh" & + exec /usr/local/bin/docker-php-entrypoint "$@" elif [ "$role" = "queue" -a -e artisan ]; then