release r011 fix CA preview file checks

This commit is contained in:
Mikei386
2026-08-21 10:18:08 +02:00
parent 771b8c43a1
commit 1abd047946
6 changed files with 15 additions and 13 deletions
+4 -4
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.r010";
export const MUA_VERSION = "2026.08.21.r011";
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";
@@ -236,14 +236,14 @@ export async function runPhpHelper(
...args: string[]
): Promise<string> {
const helper = PHP_HELPER;
if (!Bun.file(helper).exists()) {
if (!(await Bun.file(helper).exists())) {
throw new Error(`PHP helper not found: ${helper}`);
}
return runArgv(`php_helper:${action}`, ["/usr/bin/php", helper, action, ...args], 300);
}
export async function runStatusHelper(action: string, ...args: string[]): Promise<string> {
if (!Bun.file(STATUS_HELPER).exists()) {
if (!(await Bun.file(STATUS_HELPER).exists())) {
throw new Error(`Status helper not found: ${STATUS_HELPER}`);
}
return runArgv(`status_helper:${action}`, ["/usr/bin/php", STATUS_HELPER, action, ...args], 60);
@@ -875,7 +875,7 @@ export async function previewCommunityAppInstall(
}
const names = (await dockerExec("ps -a --format '{{.Names}}'", 30)).split("\n").map((x) => x.trim());
if (names.includes(containerName)) throw new Error(`Container already exists: ${containerName}`);
if (Bun.file(`/boot/config/plugins/dockerMan/templates-user/my-${containerName}.xml`).exists()) {
if (await Bun.file(`/boot/config/plugins/dockerMan/templates-user/my-${containerName}.xml`).exists()) {
throw new Error(`Unraid user template already exists: ${containerName}`);
}
const ticket = randomUUID();