This commit is contained in:
Jonatan Rek committed 2026-10-31 19:29:48 +01:00
1 parent 3883abbc85
commit 056f95384c
30 files changed

No files matched your search

@@ -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