diff --git a/README.md b/README.md index ed678c8..eb82bb6 100644 --- a/README.md +++ b/README.md @@ -76,10 +76,10 @@ Oder manuell: ```bash # .txz von Gitea laden -curl -O http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.21.r011-x86_64-1.txz +curl -O http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.21.r012-x86_64-1.txz # Installieren -upgradepkg --install-new mua-2026.08.21.r011-x86_64-1.txz +upgradepkg --install-new mua-2026.08.21.r012-x86_64-1.txz ``` ### 2. Service starten @@ -94,7 +94,7 @@ Der Service startet automatisch bei jedem Boot (SysVinit). ```bash curl http://192.168.1.2:3002/health -# → {"status":"ok","version":"2026.08.21.r011","auth":"required"} +# → {"status":"ok","version":"2026.08.21.r012","auth":"required"} ``` --- diff --git a/dist/mua-2026.08.21.r012-x86_64-1.txz b/dist/mua-2026.08.21.r012-x86_64-1.txz new file mode 100644 index 0000000..bd7aee2 Binary files /dev/null and b/dist/mua-2026.08.21.r012-x86_64-1.txz differ diff --git a/package.json b/package.json index ac04e08..6db3ed1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mua", - "version": "2026.08.21.r011", + "version": "2026.08.21.r012", "description": "Mikes Unraid Agent - MCP over HTTP (Streamable HTTP) for Unraid", "type": "module", "main": "src/index.ts", diff --git a/plugin/mua.plg b/plugin/mua.plg index a8c4631..a500dc7 100644 --- a/plugin/mua.plg +++ b/plugin/mua.plg @@ -2,13 +2,13 @@ - + - - + + ]> +### 2026.08.21.r012 +- CA-Installationsfix: Vorhandene Container werden über eine exakte Docker-Namensabfrage erkannt statt durch fehleranfällige Interpretation von Docker-Fehlertexten. ### 2026.08.21.r011 - CA-Vorschau-Fix: asynchrone Bun-Dateiprüfungen werden korrekt abgewartet; freie Container- und Templatenamen werden nicht mehr fälschlich als belegt gemeldet. ### 2026.08.21.r010 @@ -105,7 +107,7 @@ Das .txz enthält: install/doinst.sh (läuft nach Installation) =========================================== --> - + &txzURL; &txzSHA256; diff --git a/plugin/plugin.json b/plugin/plugin.json index b5775c1..e22b286 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "mua", "author": "Michael", - "version": "2026.08.21.r011", + "version": "2026.08.21.r012", "minver": "7.0.0", "pluginDirectory": "/usr/local/emhttp/plugins/mua", "configDirectory": "/boot/config/plugins/mua", diff --git a/scripts/unraid-docker-mcp-helper.php b/scripts/unraid-docker-mcp-helper.php index 8777234..3e7522a 100644 --- a/scripts/unraid-docker-mcp-helper.php +++ b/scripts/unraid-docker-mcp-helper.php @@ -262,8 +262,10 @@ function ca_install(string $template_url, string $name, string $overrides_json, $template_path = "/boot/config/plugins/dockerMan/templates-user/my-$name.xml"; if (file_exists($template_path)) fail("Template already exists: $name"); - $existing = trim(docker_exec('inspect --type container --format {{.Name}} ' . escapeshellarg($name))); - if ($existing !== '' && stripos($existing, 'Error:') !== 0) fail("Container already exists: $name"); + $existing = trim(docker_exec( + 'ps -a --filter ' . escapeshellarg("name=^/$name$") . ' --format ' . escapeshellarg('{{.Names}}') + )); + if (in_array($name, preg_split('/\R/', $existing) ?: [], true)) fail("Container already exists: $name"); $context = stream_context_create(['http' => [ 'timeout' => 30, diff --git a/src/helpers.ts b/src/helpers.ts index c978d7f..7b4a73a 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -14,7 +14,7 @@ import { createHash, randomUUID } from "node:crypto"; // ── Konstanten ────────────────────────────────────────────────────────── export const MUA_SERVER_NAME = "mua"; -export const MUA_VERSION = "2026.08.21.r011"; +export const MUA_VERSION = "2026.08.21.r012"; export const MUA_PROTOCOL_VERSION = "2025-03-26"; export const PHP_HELPER = "/usr/local/bin/unraid-docker-mcp-helper.php"; export const STATUS_HELPER = "/usr/local/bin/unraid-mcp-status-helper.php";