#!/bin/bash # Kör som root: sudo bash /home/bernt/.openclaw/workspace/nginx-pending/apply-finance-rename.sh # Prepared by: Loke (AI agent) 2026-06-05 # Changes: Fix #4 — Rename PREXO → AAMOS branding in ouroboros-finance + add financial-engine comment set -e echo "=== AAMOS Finance rename + comment apply ===" echo "Datum: $(date)" echo "" # ── 1. Uppdatera ouroboros-finance/index.mjs ───────────────────────────────── echo "[1/3] Uppdaterar ouroboros-finance/index.mjs (PREXO→AAMOS)..." cp /tmp/ouroboros-finance-index.mjs /opt/amos/services/ouroboros-finance/index.mjs echo " ✅ index.mjs uppdaterad" # ── 2. Uppdatera systemd-unit description ──────────────────────────────────── echo "[2/3] Uppdaterar ouroboros-finance.service description..." sed -i 's/Description=Ouroboros Finance Service/Description=AAMOS Finance Service/' \ /etc/systemd/system/ouroboros-finance.service systemctl daemon-reload echo " ✅ systemd-unit uppdaterad" # ── 3. Uppdatera financial-engine/src/main.rs (lägg till kommentar) ────────── echo "[3/3] Lägger till arkitekturkommentar i financial-engine/src/main.rs..." cp /tmp/financial-engine-main.rs /opt/amos/rust/financial-engine/src/main.rs echo " ✅ main.rs uppdaterad" echo "" echo "=== ✅ Klart! ===" echo "" echo "Kontrollera:" echo " systemctl status ouroboros-finance" echo " curl http://localhost:3202/health | jq .service" echo " grep 'AAMOS Finance\|AAMOS_FINANCE_PORT' /opt/amos/services/ouroboros-finance/index.mjs | head -5"