Turn off -e when running init-php.sh

This commit is contained in:
Deon George 2021-07-18 23:47:31 +10:00
parent 194a6cfa99
commit 06c6152085

3
init
View File

@ -136,7 +136,8 @@ if [ "${role}" = "app" -a -e artisan ]; then
" "
fi fi
[ -e init-php.sh -a -x init-php.sh ] && su www-data -s /bin/sh "init-php.sh" & set +e
[ -x init-php.sh ] && su www-data -s /bin/sh "init-php.sh" &
exec /usr/local/bin/docker-php-entrypoint "$@" exec /usr/local/bin/docker-php-entrypoint "$@"