aktaliosieren

This commit is contained in:
ChK
2026-03-11 08:27:05 +01:00
parent 68c2db11d0
commit 98c2485f88
8 changed files with 448 additions and 5 deletions

View File

@@ -27,10 +27,20 @@ async function runCheck(check) {
}
if (check.type === "script") {
if (!check.script_name) {
return {
status: "FAIL",
message: "No script_name defined",
duration: Date.now() - start
};
}
return new Promise((resolve) => {
const scriptPath = path.join(CHECKS_DIR, check.script_name);
const child = spawn("sh", [scriptPath], {
timeout: check.timeout_seconds * 1000
timeout: (check.timeout_seconds || 10) * 1000
});
child.on("close", (code) => {