19 lines
287 B
Bash
19 lines
287 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
cd /var/www/html
|
|
|
|
if [ ! -f "vendor/autoload.php" ]; then
|
|
composer install
|
|
fi
|
|
|
|
mkdir -p storage/logs \
|
|
storage/framework/cache \
|
|
storage/framework/sessions \
|
|
storage/framework/views \
|
|
bootstrap/cache
|
|
|
|
chmod -R 777 storage bootstrap/cache
|
|
|
|
exec "$@"
|