@@ -7,28 +7,24 @@ const execAsync = promisify(exec);
77
88export function satisfiesPrequisites ( specs : Specs ) {
99 return specs . dockerInstalled &&
10- specs . dockerComposeInstalled &&
10+ specs . dockerComposeInstalled &&
1111 specs . dockerIsRunning &&
1212 specs . dockerIsInUserGroups &&
1313 specs . freeRDP3Installed &&
14- specs . ipTablesLoaded &&
15- specs . iptableNatLoaded &&
1614 specs . kvmEnabled &&
1715 specs . ramGB >= 4 &&
1816 specs . cpuCores >= 2
1917}
2018
21- export const defaultSpecs : Specs = {
19+ export const defaultSpecs : Specs = {
2220 cpuCores : 0 ,
2321 ramGB : 0 ,
2422 kvmEnabled : false ,
2523 dockerInstalled : false ,
2624 dockerComposeInstalled : false ,
2725 dockerIsRunning : false ,
2826 dockerIsInUserGroups : false ,
29- freeRDP3Installed : false ,
30- ipTablesLoaded : false ,
31- iptableNatLoaded : false
27+ freeRDP3Installed : false
3228}
3329
3430export async function getSpecs ( ) {
@@ -113,22 +109,6 @@ export async function getSpecs() {
113109 console . error ( 'Error checking FreeRDP 3.x.x installation (most likely not installed):' , e ) ;
114110 }
115111
116- // iptables kernel module check
117- try {
118- const { stdout : ipTablesOutput } = await execAsync ( 'lsmod | grep ip_tables' ) ;
119- specs . ipTablesLoaded = ! ! ipTablesOutput . trim ( ) ;
120- } catch ( e ) {
121- console . error ( 'Error checking ip_tables module:' , e ) ;
122- }
123-
124- // iptables_nat kernel module check
125- try {
126- const { stdout : iptableNatOutput } = await execAsync ( 'lsmod | grep iptable_nat' ) ;
127- specs . iptableNatLoaded = ! ! iptableNatOutput . trim ( ) ;
128- } catch ( e ) {
129- console . error ( 'Error checking iptable_nat module:' , e ) ;
130- }
131-
132112 console . log ( 'Specs:' , specs ) ;
133113 return specs ;
134114}
0 commit comments