#!/bin/sh set -e APP_DIR=/var/www/app cd $APP_DIR git config --global --add safe.directory $APP_DIR || true if [ ! -d "vendor" ]; then composer install --no-interaction --prefer-dist fi mkdir -p storage bootstrap/cache chown -R www-data:www-data storage bootstrap/cache chmod -R 775 storage bootstrap/cache exec "$@"