Speed Up Build

This commit is contained in:
Jonatan Rek committed 2026-10-31 19:28:45 +01:00
1 parent 411f7be896
commit 3883abbc85
6 files changed
+50 -2

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Mounted volumes are usually root-owned, so www-data could not write into storage and bootstrap/cache.
cd "${APP_ROOT:-/var/www/html}" || exit 0
for dir in storage bootstrap/cache; do
if [ -d "$dir" ] && [ "$(stat -c %U "$dir")" != "www-data" ]; then
chown -R www-data:www-data "$dir"
fi
done
exit 0