From 6def512dec9f00726b071add6cd3bc929b01f360 Mon Sep 17 00:00:00 2001 From: martiliones Date: Wed, 1 Nov 2023 04:37:08 +0600 Subject: [PATCH 1/3] chore: update installation scripts --- tools/install_node.sh | 12 ++++++------ tools/install_node_centos.sh | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/install_node.sh b/tools/install_node.sh index 15480552..56238ed9 100644 --- a/tools/install_node.sh +++ b/tools/install_node.sh @@ -7,7 +7,7 @@ databasename="adamant_main" configfile="config.json" processname="adamant" port="36666" -nodejs="hydrogen" +nodejs="iron" while getopts 'b:n:j:' OPTION; do OPTARG=$(echo "$OPTARG" | xargs) @@ -31,12 +31,12 @@ while getopts 'b:n:j:' OPTION; do fi ;; j) - if [ "$OPTARG" == "16" ] || [ "$OPTARG" == "gallium" ] + if [ "$OPTARG" == "18" ] || [ "$OPTARG" == "hydrogen" ] then nodejs="gallium" - elif [ "$OPTARG" != "18" ] && [ "$OPTARG" != "hydrogen" ] + elif [ "$OPTARG" != "20" ] && [ "$OPTARG" != "iron" ] then - printf "\nNodejs should be 'gallium' = '16', or 'hydrogen' = '18'.\n\n" + printf "\nNodejs should be 'hydrogen' = '18', or 'iron' = '20'.\n\n" exit 1 fi ;; @@ -48,7 +48,7 @@ while getopts 'b:n:j:' OPTION; do done printf "\n" -printf "Welcome to the ADAMANT node installer v2.1.0 for Ubuntu 18, 20, 22. Make sure you got this file from adamant.im website or GitHub.\n" +printf "Welcome to the ADAMANT node installer v3.1.0 for Ubuntu 18, 20, 22. Make sure you got this file from adamant.im website or GitHub.\n" printf "This installer is the easiest way to run ADAMANT node. We still recommend to consult IT specialist if you are not familiar with Linux systems.\n" printf "You can see full installation instructions on https://medium.com/adamant-im/how-to-run-your-adamant-node-on-ubuntu-990e391e8fcc\n" printf "The installer will ask you to set database and user passwords during the installation.\n" @@ -138,7 +138,7 @@ su - "$username" < Date: Wed, 1 Nov 2023 18:13:06 +0600 Subject: [PATCH 2/3] Revert "chore: update installation scripts" This reverts commit 6def512dec9f00726b071add6cd3bc929b01f360. --- tools/install_node.sh | 12 ++++++------ tools/install_node_centos.sh | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/install_node.sh b/tools/install_node.sh index 56238ed9..15480552 100644 --- a/tools/install_node.sh +++ b/tools/install_node.sh @@ -7,7 +7,7 @@ databasename="adamant_main" configfile="config.json" processname="adamant" port="36666" -nodejs="iron" +nodejs="hydrogen" while getopts 'b:n:j:' OPTION; do OPTARG=$(echo "$OPTARG" | xargs) @@ -31,12 +31,12 @@ while getopts 'b:n:j:' OPTION; do fi ;; j) - if [ "$OPTARG" == "18" ] || [ "$OPTARG" == "hydrogen" ] + if [ "$OPTARG" == "16" ] || [ "$OPTARG" == "gallium" ] then nodejs="gallium" - elif [ "$OPTARG" != "20" ] && [ "$OPTARG" != "iron" ] + elif [ "$OPTARG" != "18" ] && [ "$OPTARG" != "hydrogen" ] then - printf "\nNodejs should be 'hydrogen' = '18', or 'iron' = '20'.\n\n" + printf "\nNodejs should be 'gallium' = '16', or 'hydrogen' = '18'.\n\n" exit 1 fi ;; @@ -48,7 +48,7 @@ while getopts 'b:n:j:' OPTION; do done printf "\n" -printf "Welcome to the ADAMANT node installer v3.1.0 for Ubuntu 18, 20, 22. Make sure you got this file from adamant.im website or GitHub.\n" +printf "Welcome to the ADAMANT node installer v2.1.0 for Ubuntu 18, 20, 22. Make sure you got this file from adamant.im website or GitHub.\n" printf "This installer is the easiest way to run ADAMANT node. We still recommend to consult IT specialist if you are not familiar with Linux systems.\n" printf "You can see full installation instructions on https://medium.com/adamant-im/how-to-run-your-adamant-node-on-ubuntu-990e391e8fcc\n" printf "The installer will ask you to set database and user passwords during the installation.\n" @@ -138,7 +138,7 @@ su - "$username" < Date: Wed, 1 Nov 2023 18:14:22 +0600 Subject: [PATCH 3/3] chore: update nvm version for installation scripts --- tools/install_node.sh | 4 ++-- tools/install_node_centos.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/install_node.sh b/tools/install_node.sh index 15480552..a48a17e2 100644 --- a/tools/install_node.sh +++ b/tools/install_node.sh @@ -48,7 +48,7 @@ while getopts 'b:n:j:' OPTION; do done printf "\n" -printf "Welcome to the ADAMANT node installer v2.1.0 for Ubuntu 18, 20, 22. Make sure you got this file from adamant.im website or GitHub.\n" +printf "Welcome to the ADAMANT node installer v2.1.1 for Ubuntu 18, 20, 22. Make sure you got this file from adamant.im website or GitHub.\n" printf "This installer is the easiest way to run ADAMANT node. We still recommend to consult IT specialist if you are not familiar with Linux systems.\n" printf "You can see full installation instructions on https://medium.com/adamant-im/how-to-run-your-adamant-node-on-ubuntu-990e391e8fcc\n" printf "The installer will ask you to set database and user passwords during the installation.\n" @@ -138,7 +138,7 @@ su - "$username" <