@@ -8,6 +8,9 @@ is_root=0
8
8
skip_account_setup=0
9
9
migrate_host_based_setup=0
10
10
11
+ bold=$( tput bold)
12
+ normal=$( tput sgr0)
13
+
11
14
execute_sudo () {
12
15
if [[ ${is_root} -eq 1 ]]; then
13
16
bash -c " $1 "
@@ -553,7 +556,7 @@ migrate_host_based_voi_setup() {
553
556
fi
554
557
}
555
558
556
- check_minimum_recommendations () {
559
+ check_minimum_requirements () {
557
560
if [[ ${headless_install} -eq 1 ]]; then
558
561
# # Allow headless install to skip telemetry name setup in case people bring their own wallets / use CI
559
562
return
@@ -570,23 +573,31 @@ check_minimum_recommendations() {
570
573
# /proc/meminfo prints out accessible memory, not total memory. We use 80% of the total memory as an approximation,
571
574
# intentionally going too low to allow variability from various cloud providers.
572
575
if [[ ${num_cores} -lt 4 || ${total_memory} -lt 6710886 ]]; then
573
- echo " Voi Swarm recommends at least 4 CPU cores and 8 GB of memory to run effectively."
574
- echo " Your system has ${num_cores} CPU cores and $(( total_memory / 1024 / 1024 )) GB of accessible memory."
575
- echo " "
576
- echo " If you are unable to meet these requirements, you can still proceed. However, it may not"
577
- echo " be as beneficial to the network or to you, as your node won't be able to earn rewards effectively."
578
- echo " "
579
- echo " If you are running this on a cloud provider, you can consider upgrading your instance to"
580
- echo " meet the recommended requirements."
581
- echo " "
582
- echo " Read more about other options for running a node on:"
583
- echo " - https://voinetwork.github.io/voi-swarm/getting-started/introduction/"
584
- echo " "
585
- echo " Find other ways to contribute to the network by joining the Voi Network Discord:"
586
- echo " - https://discord.com/invite/vnFbrJrHeW"
587
- echo " "
576
+ echo " *************************************************************************************"
577
+ echo " * ${bold} WARNING: Your system does not meet the minimum requirements to run Voi Swarm effectively.${normal} "
578
+ echo " *************************************************************************************"
579
+ echo " *"
580
+ echo " * Voi Swarm requires at least 4 CPU cores and 8 GB of memory to run effectively."
581
+ echo " *"
582
+ echo " * Your system has:"
583
+ echo " * - CPU cores: ${bold}${num_cores}${normal} CPU cores. ${bold} 4${normal} is required."
584
+ echo " * - Memory: ${bold} $(( total_memory / 1024 / 1024 )) ${normal} GB of accessible memory. ${bold} 8${normal} GB is required."
585
+ echo " *"
586
+ echo " * You can still proceed, however, it may not be as beneficial to the network or to you,"
587
+ echo " * as your node won't be able to contribute or earn rewards effectively."
588
+ echo " * You should ${bold} expect poor performance${normal} , and the community may ${bold} not be able to help${normal} you with issues."
589
+ echo " * "
590
+ echo " * If you are running this on a cloud provider, you should consider upgrading your instance to"
591
+ echo " * meet the requirements."
592
+ echo " * "
593
+ echo " * Read more about other options for running a node on:"
594
+ echo " * - https://voinetwork.github.io/voi-swarm/getting-started/introduction/"
595
+ echo " *"
596
+ echo " * Find other ways to contribute to the network by joining the Voi Network Discord:"
597
+ echo " * - https://discord.com/invite/vnFbrJrHeW"
598
+ echo " *"
588
599
# shellcheck disable=SC2162
589
- read -p " Type 'acknowledged' when you're ready to continue: " prompt
600
+ read -p " Type '${bold} acknowledged${normal} ' when you're ready to continue: " prompt
590
601
while [[ ${prompt} != " acknowledged" ]]
591
602
do
592
603
# shellcheck disable=SC2162
@@ -633,9 +644,9 @@ if [[ -n ${VOINETWORK_SKIP_WALLET_SETUP} && ${VOINETWORK_SKIP_WALLET_SETUP} -eq
633
644
headless_install=1
634
645
fi
635
646
636
- display_banner " Welcome to Voi Swarm. Let's get started!"
647
+ display_banner " ${bold} Welcome to Voi Swarm${normal} . Let's get started!"
637
648
638
- check_minimum_recommendations
649
+ check_minimum_requirements
639
650
640
651
get_telemetry_name
641
652
0 commit comments