65d8ab5fe3
- Engine-Update: deploy/update-engine.sh laedt neuesten ggml-org Vulkan-Build + restart; MC_ENGINE_UPDATE_CMD verdrahtet, engine_update_job nutzt es (Script macht Restart selbst). - Update-Checks: Hermes Agent (NousResearch/hermes-agent, Release-Datum vs. installiertes Commit) + AnythingLLM (Mintplex-Labs/anything-llm, neueste Version + /api/ping-Health), 1h-Cache. Neues Feld /api/maintenance/updates.components; UpdatesCard zeigt beide Zeilen. - WebUI -> AnythingLLM: agent_status.webui_* zeigt jetzt auf ANYTHINGLLM_URL (192.168.178.155:3001, /api/ping); alle "Hermes WebUI"-Buttons/Labels (AgentView, AgentStatusCard, nav, GuideView, Services-Liste) -> "AnythingLLM". Lokaler hermes-webui-Dienst bleibt als Service-Control im SystemDrawer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
# Aktualisiert den Vulkan-llama.cpp-Build auf den neuesten ggml-org-Release.
|
|
# Wird vom MC2-„Engine Update"-Button via `sudo bash …` als ROOT aufgerufen
|
|
# (deshalb KEIN internes sudo). Startet llama-swap am Ende neu.
|
|
set -euo pipefail
|
|
|
|
VULKAN_DIR=/opt/llamacpp-vulkan
|
|
PIN_BUILD="${MC_ENGINE_BUILD:-}" # leer = neuester Release
|
|
|
|
if [ -n "$PIN_BUILD" ]; then
|
|
TAG="$PIN_BUILD"
|
|
else
|
|
TAG="$(curl -s https://api.github.com/repos/ggml-org/llama.cpp/releases/latest | jq -r .tag_name)"
|
|
fi
|
|
[ -n "$TAG" ] && [ "$TAG" != "null" ] || { echo "Konnte neuesten Release-Tag nicht ermitteln"; exit 1; }
|
|
|
|
ASSET="llama-${TAG}-bin-ubuntu-vulkan-x64.tar.gz"
|
|
URL="https://github.com/ggml-org/llama.cpp/releases/download/${TAG}/${ASSET}"
|
|
TMP="$(mktemp -d)"
|
|
trap 'rm -rf "$TMP"' EXIT
|
|
|
|
echo "Lade Engine ${TAG} …"
|
|
curl -fsSL -o "$TMP/v.tgz" "$URL"
|
|
tar xzf "$TMP/v.tgz" -C "$TMP"
|
|
mkdir -p "$VULKAN_DIR"
|
|
cp -rf "$TMP"/llama-*/. "$VULKAN_DIR"/
|
|
test -x "$VULKAN_DIR/llama-server"
|
|
ln -sfn "$VULKAN_DIR/llama-server" /usr/local/bin/llama-server
|
|
|
|
systemctl restart llama-swap
|
|
echo "Engine aktualisiert auf ${TAG} und llama-swap neugestartet."
|