Skip to content

Commit 84c0204

Browse files
Fix a false detection as a VM when it is a LXC
1 parent 66a3bb3 commit 84c0204

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"dependencies": {
2828
"@prisma/adapter-better-sqlite3": "^7.0.1",
2929
"@prisma/client": "^7.0.1",
30-
"better-sqlite3": "^12.4.6",
3130
"@radix-ui/react-dropdown-menu": "^2.1.16",
3231
"@radix-ui/react-slot": "^1.2.4",
3332
"@t3-oss/env-nextjs": "^0.13.8",
@@ -43,6 +42,7 @@
4342
"@xterm/xterm": "^5.5.0",
4443
"axios": "^1.13.2",
4544
"bcryptjs": "^3.0.3",
45+
"better-sqlite3": "^12.4.6",
4646
"class-variance-authority": "^0.7.1",
4747
"clsx": "^2.1.1",
4848
"cron-validator": "^1.4.0",
@@ -80,6 +80,7 @@
8080
"@vitejs/plugin-react": "^5.1.1",
8181
"@vitest/coverage-v8": "^4.0.14",
8282
"@vitest/ui": "^4.0.14",
83+
"baseline-browser-mapping": "^2.8.32",
8384
"eslint": "^9.39.1",
8485
"eslint-config-next": "^16.0.5",
8586
"jsdom": "^27.2.0",
@@ -88,9 +89,9 @@
8889
"prettier-plugin-tailwindcss": "^0.7.1",
8990
"prisma": "^7.0.1",
9091
"tailwindcss": "^4.1.17",
92+
"tsx": "^4.19.4",
9193
"typescript": "^5.9.3",
9294
"typescript-eslint": "^8.48.0",
93-
"tsx": "^4.19.4",
9495
"vitest": "^4.0.14"
9596
},
9697
"ct3aMetadata": {
@@ -103,4 +104,4 @@
103104
"overrides": {
104105
"prismjs": "^1.30.0"
105106
}
106-
}
107+
}

src/server/api/routers/installedScripts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ async function isVM(scriptId: number, containerId: string, serverId: number | nu
458458
);
459459
});
460460

461-
// If LXC config exists, it's an LXC container
462-
return !lxcConfigExists; // Return true if it's a VM (neither config exists defaults to false/LXC)
461+
462+
return false; // Always LXC since VM config doesn't exist
463463
} catch (error) {
464464
console.error('Error determining container type:', error);
465465
return false; // Default to LXC on error

0 commit comments

Comments
 (0)