From 531d34a328ae4becdbf538d3875c601b9bd69200 Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Wed, 17 Dec 2025 11:18:07 -0700 Subject: [PATCH] fix: run permission fix after every update Some hosting providers (CLOUD.RU, etc.) reset file permissions during updates, leaving .env and generated files owned by root. This prevents normal users from reading configuration. Now 08_fix_permissions.sh runs after each update to restore proper ownership and permissions. --- scripts/apply_update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/apply_update.sh b/scripts/apply_update.sh index 213ab75..d241a54 100755 --- a/scripts/apply_update.sh +++ b/scripts/apply_update.sh @@ -98,6 +98,13 @@ bash "$RUN_SERVICES_SCRIPT" || { log_error "Failed to start services. Check logs log_success "Update application completed successfully!" +# --- Fix file permissions --- +log_info "Fixing file permissions..." +bash "$SCRIPT_DIR/08_fix_permissions.sh" || { + log_warning "Failed to fix file permissions. This does not affect the update." +} +# --- End of Fix permissions --- + # --- Display Final Report with Credentials --- bash "$SCRIPT_DIR/07_final_report.sh" || { log_warning "Failed to display the final report. This does not affect the update."