1 file changed
+7
@@ -17,6 +17,13 @@ chmod -R ug+rwX storage bootstrap/cache
|
||||
# This is safe to run on every start and does not perform migrations.
|
||||
php artisan storage:link --force >/dev/null 2>&1 || true
|
||||
|
||||
# PHP-FPM must start as root so it can initialise correctly.
|
||||
# PHP-FPM will drop privileges for its worker processes itself.
|
||||
if [ "$1" = "php-fpm" ]; then
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Artisan workers and other application commands should run as www-data.
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
exec gosu www-data "$@"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user