chore: Manticore-Reindex aus update.sh entfernen

Der automatische Reindex lief bisher bei jedem Deploy mit (volle
Mailmenge), obwohl er nur einmalig für die Xapian→Manticore-Migration
gedacht war. Neue Mails werden ohnehin synchron beim Import indiziert
(IndexSync). Reindex bei Bedarf (z.B. Schema-Änderungen) jetzt manuell.
This commit is contained in:
sysops
2026-06-21 22:46:55 +02:00
parent 92e57431c3
commit f55a40c77d
+5 -19
View File
@@ -185,26 +185,12 @@ systemctl start archivmail
systemctl start archivmail-web systemctl start archivmail-web
log "Dienste gestartet" log "Dienste gestartet"
# ── Manticore Reindex (einmalig nach Backend-Umstieg) ─────────────────────
sleep 2
if grep -q 'backend: manticore' /etc/archivmail/config.yml 2>/dev/null \
&& systemctl is-active --quiet archivmail 2>/dev/null \
&& systemctl is-active --quiet manticore 2>/dev/null; then
info "Baue Manticore-Suchindex auf (alle Mails)..."
if timeout 600 /opt/archivmail/bin/archivmail reindex --config /etc/archivmail/config.yml; then
log "Manticore-Index aufgebaut"
# Xapian-Altdaten entfernen (nach erfolgreichem Manticore-Reindex)
XAPIAN_DIR="/var/archivmail/xapian"
if [[ -d "$XAPIAN_DIR" ]]; then
rm -rf "$XAPIAN_DIR"
log "Xapian-Altdaten entfernt ($XAPIAN_DIR)"
fi
else
warn "Reindex nicht abgeschlossen — bei Bedarf manuell: archivmail reindex"
fi
fi
# ── Status prüfen ───────────────────────────────────────────────────────── # ── Status prüfen ─────────────────────────────────────────────────────────
# Hinweis: Kein automatischer Manticore-Reindex mehr bei jedem Update.
# Neu importierte Mails (IMAP/SMTP/POP3/EML) werden synchron indiziert
# (siehe internal/imap/importer.go IndexSync) — ein Reindex ist nur nach
# Schema-Änderungen am Index nötig: manuell mit
# archivmail reindex --config /etc/archivmail/config.yml
sleep 2 sleep 2
BACKEND_OK=0 BACKEND_OK=0