Update AppImage

This commit is contained in:
MacRimi
2025-11-30 19:15:07 +01:00
parent f60bfe8c54
commit 9639dd422a
3 changed files with 143 additions and 18 deletions

View File

@@ -0,0 +1,40 @@
import { NextResponse } from "next/server"
import { executeScript } from "@/lib/script-executor"
export async function POST() {
try {
// Execute the NVIDIA installer script
const result = await executeScript("/usr/local/share/proxmenux/scripts/gpu_tpu/nvidia_installer.sh", {
env: {
EXECUTION_MODE: "web",
WEB_LOG: "/tmp/nvidia_web_install.log",
},
})
if (result.exitCode === 0) {
return NextResponse.json({
success: true,
message: "NVIDIA drivers installed successfully",
output: result.stdout,
})
} else {
return NextResponse.json(
{
success: false,
error: "Installation failed",
output: result.stderr || result.stdout,
},
{ status: 500 },
)
}
} catch (error) {
console.error("NVIDIA installation error:", error)
return NextResponse.json(
{
success: false,
error: error instanceof Error ? error.message : "Unknown error",
},
{ status: 500 },
)
}
}