Bob Mottram 6 år sedan
förälder
incheckning
4321770ee5
2 ändrade filer med 5 tillägg och 4 borttagningar
  1. 1
    0
      src/freedombone-app-matrix
  2. 4
    4
      src/freedombone-utils-selector

+ 1
- 0
src/freedombone-app-matrix Visa fil

@@ -37,6 +37,7 @@ VARIANTS='full full-vim chat'
37 37
 IN_DEFAULT_INSTALL=0
38 38
 SHOW_ON_ABOUT=1
39 39
 NOT_ON_ONION=1
40
+MINIMUM_RAM_MB=1500
40 41
 
41 42
 MATRIX_DOMAIN_NAME=
42 43
 MATRIX_CODE=

+ 4
- 4
src/freedombone-utils-selector Visa fil

@@ -318,7 +318,7 @@ function detect_apps {
318 318
     for filename in $FILES
319 319
     do
320 320
         app_name=$(echo "${filename}" | awk -F '-app-' '{print $2}')
321
-        if [[ $(enough_ram_for_app "$app_name") != "0" ]]; then
321
+        if [[ $(enough_ram_for_app "$app_name") == "0" ]]; then
322 322
             if [[ $(app_not_on_onion_only "$app_name") != "0" ]]; then
323 323
                 # shellcheck disable=SC2068
324 324
                 if ! item_in_array "${app_name}" ${APPS_AVAILABLE[@]}; then
@@ -354,7 +354,7 @@ function detect_installable_apps {
354 354
     do
355 355
         app_name=$(echo "${filename}" | awk -F '-app-' '{print $2}')
356 356
 
357
-        if [[ $(enough_ram_for_app "$app_name") != "0" ]]; then
357
+        if [[ $(enough_ram_for_app "$app_name") == "0" ]]; then
358 358
             if [[ $(app_not_on_onion_only "$app_name") != "0" ]]; then
359 359
                 # shellcheck disable=SC2068
360 360
                 if ! item_in_array "${app_name}" ${APPS_AVAILABLE[@]}; then
@@ -390,7 +390,7 @@ function detect_installed_apps {
390 390
     do
391 391
         app_name=$(echo "${filename}" | awk -F '-app-' '{print $2}')
392 392
 
393
-        if [[ $(enough_ram_for_app "$app_name") != "0" ]]; then
393
+        if [[ $(enough_ram_for_app "$app_name") == "0" ]]; then
394 394
             if [[ $(app_not_on_onion_only "$app_name") != "0" ]]; then
395 395
                 if [[ $(app_is_installed "$app_name") == "1" ]]; then
396 396
                     # shellcheck disable=SC2068
@@ -429,7 +429,7 @@ function choose_apps_for_variant {
429 429
     for filename in $FILES
430 430
     do
431 431
         app_name=$(echo "${filename}" | awk -F '-app-' '{print $2}')
432
-        if [[ $(enough_ram_for_app "$app_name") != "0" ]]; then
432
+        if [[ $(enough_ram_for_app "$app_name") == "0" ]]; then
433 433
             if [[ $(app_not_on_onion_only "$app_name") != "0" ]]; then
434 434
                 # shellcheck disable=SC2068
435 435
                 if item_in_array "${app_name}" ${APPS_AVAILABLE[@]}; then