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