Fix a false detection as a VM when it is a LXC

This commit is contained in:
Michel Roegl-Brunner
2025-11-29 15:41:49 +01:00
parent 66a3bb3203
commit 84c02048bc
3 changed files with 10 additions and 8 deletions

View File

@@ -458,8 +458,8 @@ async function isVM(scriptId: number, containerId: string, serverId: number | nu
);
});
// If LXC config exists, it's an LXC container
return !lxcConfigExists; // Return true if it's a VM (neither config exists defaults to false/LXC)
return false; // Always LXC since VM config doesn't exist
} catch (error) {
console.error('Error determining container type:', error);
return false; // Default to LXC on error