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.
This commit is contained in:
Yury Kossakovsky
2025-12-17 11:18:07 -07:00
parent 86d0783ec5
commit 531d34a328

View File

@@ -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."