Add init-php.sh execution if it exists

This commit is contained in:
Deon George 2021-07-17 23:11:55 +10:00
parent 471e5df45c
commit 194a6cfa99
1 changed files with 2 additions and 0 deletions

2
init
View File

@ -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