Skip to content

Commit b62d65e

Browse files
committed
Grammar fixes + more min req. warning more direct
1 parent da604fd commit b62d65e

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

install.sh

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ is_root=0
88
skip_account_setup=0
99
migrate_host_based_setup=0
1010

11+
bold=$(tput bold)
12+
normal=$(tput sgr0)
13+
1114
execute_sudo() {
1215
if [[ ${is_root} -eq 1 ]]; then
1316
bash -c "$1"
@@ -553,7 +556,7 @@ migrate_host_based_voi_setup() {
553556
fi
554557
}
555558

556-
check_minimum_recommendations() {
559+
check_minimum_requirements() {
557560
if [[ ${headless_install} -eq 1 ]]; then
558561
## Allow headless install to skip telemetry name setup in case people bring their own wallets / use CI
559562
return
@@ -570,23 +573,31 @@ check_minimum_recommendations() {
570573
# /proc/meminfo prints out accessible memory, not total memory. We use 80% of the total memory as an approximation,
571574
# intentionally going too low to allow variability from various cloud providers.
572575
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 "*"
588599
# 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
590601
while [[ ${prompt} != "acknowledged" ]]
591602
do
592603
# shellcheck disable=SC2162
@@ -633,9 +644,9 @@ if [[ -n ${VOINETWORK_SKIP_WALLET_SETUP} && ${VOINETWORK_SKIP_WALLET_SETUP} -eq
633644
headless_install=1
634645
fi
635646

636-
display_banner "Welcome to Voi Swarm. Let's get started!"
647+
display_banner "${bold}Welcome to Voi Swarm${normal}. Let's get started!"
637648

638-
check_minimum_recommendations
649+
check_minimum_requirements
639650

640651
get_telemetry_name
641652

0 commit comments

Comments
 (0)