release: r014 normalize CA templates

This commit is contained in:
Mikei386 committed 2026-08-21 10:27:33 +02:00
1 parent f988fd03af
commit 37de236f5a
7 files changed
+21 -10

No files matched your search

+3 -3
View File
@@ -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.r013-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.r014-x86_64-1.txz
# Installieren
upgradepkg --install-new mua-2026.08.21.r013-x86_64-1.txz
upgradepkg --install-new mua-2026.08.21.r014-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.r013","auth":"required"}
# → {"status":"ok","version":"2026.08.21.r014","auth":"required"}
```
---
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mua",
"version": "2026.08.21.r013",
"version": "2026.08.21.r014",
"description": "Mikes Unraid Agent - MCP over HTTP (Streamable HTTP) for Unraid",
"type": "module",
"main": "src/index.ts",
+6 -4
View File
@@ -2,13 +2,13 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "mua">
<!ENTITY author "Michael">
<!ENTITY version "2026.08.21.r013">
<!ENTITY version "2026.08.21.r014">
<!ENTITY launch "Settings/mua">
<!ENTITY pluginURL "http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/plugin/mua.plg">
<!ENTITY pluginLOC "/boot/config/plugins/&name;">
<!ENTITY emhttpLOC "/usr/local/emhttp/plugins/&name;">
<!ENTITY txzURL "http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.21.r013-x86_64-1.txz">
<!ENTITY txzSHA256 "c1aad2e07f5acb249e02f9199c5815e3e70f203a48ad86f38e3381b49085ad57">
<!ENTITY txzURL "http://192.168.1.2:4000/michael/MUA-Mikes-Unraid-Agent/raw/branch/main/dist/mua-2026.08.21.r014-x86_64-1.txz">
<!ENTITY txzSHA256 "a1d46457b9fdf9e31f873256e443d553e45e3a07d3c00bc528d88daf3bc37f74">
]>
<PLUGIN name="&name;"
@@ -23,6 +23,8 @@
>
<CHANGES>
### 2026.08.21.r014
- CA-Template-Normalisierung: Fehlende Mode-Attribute werden ergänzt, damit Unraids Docker-Manager Community-Apps ohne PHP-Warnungen einliest.
### 2026.08.21.r013
- CA-Port-Override-Fix: Numerische XML-Ziele wie Port 8080 werden nach PHPs JSON-Dekodierung sicher als Text normalisiert.
### 2026.08.21.r012
@@ -109,7 +111,7 @@ Das .txz enthält:
install/doinst.sh (läuft nach Installation)
===========================================
-->
<FILE Name="/boot/config/plugins/&name;/mua-2026.08.21.r013-x86_64-1.txz" Run="upgradepkg --install-new" Mode="755" Min="7.0.0">
<FILE Name="/boot/config/plugins/&name;/mua-2026.08.21.r014-x86_64-1.txz" Run="upgradepkg --install-new" Mode="755" Min="7.0.0">
<URL>&txzURL;</URL>
<SHA256>&txzSHA256;</SHA256>
</FILE>
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "mua",
"author": "Michael",
"version": "2026.08.21.r013",
"version": "2026.08.21.r014",
"minver": "7.0.0",
"pluginDirectory": "/usr/local/emhttp/plugins/mua",
"configDirectory": "/boot/config/plugins/mua",
+9
View File
@@ -312,6 +312,15 @@ function ca_install(string $template_url, string $name, string $overrides_json,
if (!$found) fail("Override target not present in template: $target");
}
// Some CA templates omit Mode on variables. Unraid's Docker manager reads
// the attribute unconditionally, so normalize it before saving the user's
// template to avoid PHP warnings while preserving an empty mode.
foreach ($dom->getElementsByTagName('Config') as $config) {
if (!$config->hasAttribute('Mode')) {
$config->setAttribute('Mode', '');
}
}
$dom->formatOutput = true;
if ($dom->save($template_path) === false) fail('Unable to write Unraid user template');
chmod($template_path, 0600);
+1 -1
View File
@@ -14,7 +14,7 @@ import { createHash, randomUUID } from "node:crypto";
// ── Konstanten ──────────────────────────────────────────────────────────
export const MUA_SERVER_NAME = "mua";
export const MUA_VERSION = "2026.08.21.r013";
export const MUA_VERSION = "2026.08.21.r014";
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";