From 7454638506a03d76a4b1bfa8c971a73ca4608cdb Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 18:43:38 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20bootstrap/cache=20Rechte=20nach=20artisa?= =?UTF-8?q?n-Befehlen=20f=C3=BCr=20www-data=20freigeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- scripts/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/update.sh b/scripts/update.sh index b7e1e99..039b6e2 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -361,6 +361,9 @@ if [[ $NEED_PHP_RESTART -eq 1 || $NEED_COMPOSER -eq 1 || $NEED_MIGRATIONS -eq 1 as_app "cd ${APP_DIR} && php artisan config:cache || true" as_app "cd ${APP_DIR} && php artisan route:cache || true" as_app "cd ${APP_DIR} && php artisan queue:restart || true" + # Rechte: bootstrap/cache und storage müssen für www-data lesbar sein + chown -R "${APP_USER}:${APP_GROUP}" "${APP_DIR}/bootstrap/cache" "${APP_DIR}/storage" 2>/dev/null || true + chmod -R g+rX "${APP_DIR}/bootstrap/cache" "${APP_DIR}/storage" 2>/dev/null || true fi # -------- Dienste neu laden (gezielt) ----------------------------------------