7 files changed
+23
-312
No files matched your search
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
mkdir -p \
|
||||
storage/framework/cache/data \
|
||||
storage/framework/sessions \
|
||||
storage/framework/views \
|
||||
storage/logs \
|
||||
bootstrap/cache
|
||||
|
||||
chown -R www-data:www-data storage bootstrap/cache
|
||||
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
|
||||
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
exec gosu www-data "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in new issue
Block a user