From 202eed7c134a369bf9c9709f9e37959ae8204345 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 21 Jul 2025 20:22:31 +0200 Subject: [PATCH] firefly: fix permissions at update (#6119) --- ct/firefly.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ct/firefly.sh b/ct/firefly.sh index 61e39f162..f6a3a4231 100644 --- a/ct/firefly.sh +++ b/ct/firefly.sh @@ -46,9 +46,13 @@ function update_script() { rm -rf /opt/firefly/storage cp /opt/.env /opt/firefly/.env cp -r /opt/storage /opt/firefly/storage - cd /opt/firefly + chown -R www-data:www-data /opt/firefly - chmod -R 775 /opt/firefly/storage + find /opt/firefly/storage -type d -exec chmod 775 {} \; + find /opt/firefly/storage -type f -exec chmod 664 {} \; + mkdir -p /opt/firefly/storage/framework/{cache/data,sessions,views} + $STD sudo -u www-data php /opt/firefly/artisan cache:clear + $STD php artisan migrate --seed --force $STD php artisan cache:clear $STD php artisan view:clear