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

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