Fix: bootstrap/cache Rechte nach artisan-Befehlen für www-data freigeben

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.303
boban 2026-04-26 18:43:38 +02:00
parent f49b92074e
commit 7454638506
1 changed files with 3 additions and 0 deletions

View File

@ -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 config:cache || true"
as_app "cd ${APP_DIR} && php artisan route:cache || true" as_app "cd ${APP_DIR} && php artisan route:cache || true"
as_app "cd ${APP_DIR} && php artisan queue:restart || 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 fi
# -------- Dienste neu laden (gezielt) ---------------------------------------- # -------- Dienste neu laden (gezielt) ----------------------------------------