fix(deploy): Manticore-Installer auf aktuelles Paketschema+Version aktualisieren

Manticore hat das Debian-Paketschema geändert: früher mehrere
manticoresearch_*-Pakete unter pool/main/m/manticoresearch/, seit ~v25 ein
einziges "manticore"-Paket unter dists/bookworm/main/binary-ARCH/. Beide
Skripte waren zudem hart auf die veraltete Version 6.3.6 gepinnt (aktuell:
27.1.5). GitHub-Release-Fallback entfernt, da GitHub-Releases inzwischen
keine .deb-Assets mehr anhängen (leeres assets[], per API verifiziert) —
repo.manticoresearch.com ist der einzige funktionierende Weg.

Neue Download-URL + Paket-Metadaten (Name/Version/Architektur) gegen den
echten Server verifiziert, beide Skripte mit bash -n auf Syntaxfehler
geprüft. Betrifft nur Neuinstallationen — bestehende Installationen mit
bereits laufendem Manticore überspringen den Installationsblock unverändert.
This commit is contained in:
sysops
2026-07-05 18:00:36 +02:00
parent 55131de81d
commit 3428537cd9
2 changed files with 26 additions and 10 deletions
+9 -5
View File
@@ -425,14 +425,18 @@ install_native() {
ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt
# ── 1c. Manticore Search ────────────────────────────────────────────────── # ── 1c. Manticore Search ──────────────────────────────────────────────────
info "Installiere Manticore Search..." # Kein natives trixie-Repo (siehe update.sh für Details) — bookworm-Paket
# ist lauffähig. Seit ~v25 ein einziges "manticore"-Paket statt der
# früheren manticoresearch_*-Aufteilung; GitHub-Releases liefern keine
# .deb-Assets mehr, daher kein Fallback mehr dorthin. Version pinnen statt
# dynamisch "latest" ermitteln (vorhersagbar, kein Parsing-Risiko) — zum
# Aktualisieren: https://repo.manticoresearch.com/repository/manticoresearch_bookworm/dists/bookworm/main/binary-amd64/Packages
_MANTICORE_VERSION="27.1.5-26061911-5a1cf9399"
info "Installiere Manticore Search ${_MANTICORE_VERSION}..."
if ! command -v searchd >/dev/null 2>&1 && ! systemctl is-active --quiet manticore 2>/dev/null; then if ! command -v searchd >/dev/null 2>&1 && ! systemctl is-active --quiet manticore 2>/dev/null; then
# Manticore hat kein natives trixie-Paket — bookworm-Paket ist kompatibel
_mc_arch="$(dpkg --print-architecture)" _mc_arch="$(dpkg --print-architecture)"
wget -q -O /tmp/manticore.deb \ wget -q -O /tmp/manticore.deb \
"https://repo.manticoresearch.com/repository/manticoresearch_bookworm/pool/main/m/manticoresearch/manticoresearch_6.3.6_${_mc_arch}.deb" 2>/dev/null \ "https://repo.manticoresearch.com/repository/manticoresearch_bookworm/dists/bookworm/main/binary-${_mc_arch}/manticore_${_MANTICORE_VERSION}_${_mc_arch}.deb" \
|| wget -q -O /tmp/manticore.deb \
"https://github.com/manticoresoftware/manticoresearch/releases/download/6.3.6/manticoresearch_6.3.6.202408011246.4c39781ba-1+bookworm_${_mc_arch}.deb" 2>/dev/null \
|| true || true
if [[ -f /tmp/manticore.deb ]]; then if [[ -f /tmp/manticore.deb ]]; then
dpkg -i /tmp/manticore.deb 2>/dev/null || apt-get install -f -y -qq 2>/dev/null || true dpkg -i /tmp/manticore.deb 2>/dev/null || apt-get install -f -y -qq 2>/dev/null || true
+17 -5
View File
@@ -78,16 +78,28 @@ command -v npm >/dev/null || die "npm nicht gefunden — apt-get install npm"
# ── Manticore Search prüfen / installieren ──────────────────────────────── # ── Manticore Search prüfen / installieren ────────────────────────────────
# Paket ist an bookworm gebunden — funktioniert auch auf trixie und Debian 14+, # Paket ist an bookworm gebunden — funktioniert auch auf trixie und Debian 14+,
# da Manticore kein OS-spezifisches ABI nutzt. # da Manticore kein OS-spezifisches ABI nutzt (repo.manticoresearch.com hat
# kein eigenes trixie-Repo, siehe Release-Notes ab v13.6.7 "Added support for
# Debian 13 Trixie" — das bezieht sich auf Lauffähigkeit, nicht auf ein neues
# Repo). Seit ~v25 ist "manticoresearch" ein einziges "manticore"-Paket
# (vorher mehrere manticore-server/-tools/-dev-Pakete) — Paketname und
# Pfadstruktur im Repo haben sich entsprechend geändert. GitHub-Releases
# liefern seit einiger Zeit keine .deb-Assets mehr (leeres assets[]), daher
# kein Fallback mehr dorthin — repo.manticoresearch.com ist der einzige Weg.
#
# Version manuell pinnen (wie hier) statt "latest" dynamisch aus der
# Packages-Datei zu parsen: vorhersagbarer, kein Risiko durch Parsing-Format-
# Änderungen im Repo. Zum Aktualisieren: aktuelle Version+Filename unter
# https://repo.manticoresearch.com/repository/manticoresearch_bookworm/dists/bookworm/main/binary-amd64/Packages
# nachschlagen (letzter "Package: manticore"-Block).
_MANTICORE_VERSION="27.1.5-26061911-5a1cf9399"
if ! command -v searchd >/dev/null 2>&1 && ! systemctl is-active --quiet manticore 2>/dev/null; then if ! command -v searchd >/dev/null 2>&1 && ! systemctl is-active --quiet manticore 2>/dev/null; then
info "Manticore Search nicht gefunden — installiere..." info "Manticore Search nicht gefunden — installiere Version ${_MANTICORE_VERSION}..."
_mc_arch="amd64" _mc_arch="amd64"
[[ "$(uname -m)" == "aarch64" ]] && _mc_arch="arm64" [[ "$(uname -m)" == "aarch64" ]] && _mc_arch="arm64"
wget -q -O /tmp/manticore.deb \ wget -q -O /tmp/manticore.deb \
"https://repo.manticoresearch.com/repository/manticoresearch_bookworm/pool/main/m/manticoresearch/manticoresearch_6.3.6_${_mc_arch}.deb" 2>/dev/null \ "https://repo.manticoresearch.com/repository/manticoresearch_bookworm/dists/bookworm/main/binary-${_mc_arch}/manticore_${_MANTICORE_VERSION}_${_mc_arch}.deb" \
|| wget -q -O /tmp/manticore.deb \
"https://github.com/manticoresoftware/manticoresearch/releases/download/6.3.6/manticoresearch_6.3.6.202408011246.4c39781ba-1+bookworm_${_mc_arch}.deb" 2>/dev/null \
|| true || true
if [[ -f /tmp/manticore.deb ]]; then if [[ -f /tmp/manticore.deb ]]; then
dpkg -i /tmp/manticore.deb 2>/dev/null || apt-get install -f -y -qq 2>/dev/null || true dpkg -i /tmp/manticore.deb 2>/dev/null || apt-get install -f -y -qq 2>/dev/null || true