Files
SAE-BUT2-docker/entrypoint.sh
T
2026-01-27 14:10:19 +01:00

18 lines
326 B
Bash

#!/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 "$@"