You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printf"${Red}Error: ${1} GB RAM required to install ${2}!${Color_Off}\n">&2
295
-
printf"${Red}Current RAM is: ("$((mem_available/1002400))" GB)${Color_Off}\n">&2
294
+
print_text_in_color"${Red}""Error: ${1} GB RAM required to install ${2}!">&2
295
+
print_text_in_color"${Red}""Current RAM is: ("$((mem_available/1002400))" GB)">&2
296
296
sleep 3
297
+
msg_box "If you want to bypass this check you could do so by commenting out (# before the line) 'ram_check X' in the script that you are trying to run.
298
+
In nextcloud_install_production.sh you can find the check somewhere around line #34.
299
+
Please notice that things may be veery slow and not work as expeced. YOU HAVE BEEN WARNED!"
297
300
exit 1
298
301
else
299
-
printf"${Green}RAM for ${2} OK! ("$((mem_available/1002400))" GB)${Color_Off}\n"
302
+
print_text_in_color"${IGreen}""RAM for ${2} OK! ($((mem_available/1002400)) GB)"
300
303
fi
301
304
}
302
305
@@ -307,19 +310,19 @@ cpu_check() {
307
310
nr_cpu="$(nproc)"
308
311
if [ "${nr_cpu}"-lt"${1}" ]
309
312
then
310
-
printf"${Red}Error: ${1} CPU required to install ${2}!${Color_Off}\n">&2
printf"${Green}CPU for ${2} OK! ("$((nr_cpu))")${Color_Off}\n"
318
+
print_text_in_color"${IGreen}""CPU for ${2} OK! ($((nr_cpu)))"
316
319
fi
317
320
}
318
321
319
322
check_command() {
320
323
if!"$@";
321
324
then
322
-
printf"${IRed}Sorry but something went wrong. Please report this issue to $ISSUES and include the output of the error message. Thank you!${Color_Off}\n"
325
+
print_text_in_color"${Red}"Sorry but something went wrong. Please report this issue to $ISSUES and include the output of the error message. Thank you!"
0 commit comments