From 87eaccaba020df21892017c353b37700323d9108 Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Mon, 5 Aug 2024 11:30:36 +0900 Subject: [PATCH] chore: update installer Signed-off-by: Xin Liu --- install.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index ad81421..a4bfeb3 100644 --- a/install.sh +++ b/install.sh @@ -327,21 +327,21 @@ if [ "$upgrade" -eq 1 ]; then else printf "[+] Downloading default config.json ...\n" - # if [ ! -f "$gaianet_base_dir/config.json" ]; then - # check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/config.json $gaianet_base_dir/config.json + if [ ! -f "$gaianet_base_dir/config.json" ]; then + check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/config.json $gaianet_base_dir/config.json - # info " * The default config file is downloaded in $gaianet_base_dir" - # else - # warning " * Use the cached config file in $gaianet_base_dir" - # fi + info " * The default config file is downloaded in $gaianet_base_dir" + else + warning " * Use the cached config file in $gaianet_base_dir" + fi - # # 3. download nodeid.json - # if [ ! -f "$gaianet_base_dir/nodeid.json" ]; then - # printf "[+] Downloading nodeid.json ...\n" - # check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/nodeid.json $gaianet_base_dir/nodeid.json + # 3. download nodeid.json + if [ ! -f "$gaianet_base_dir/nodeid.json" ]; then + printf "[+] Downloading nodeid.json ...\n" + check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/nodeid.json $gaianet_base_dir/nodeid.json - # info " * The nodeid.json is downloaded in $gaianet_base_dir" - # fi + info " * The nodeid.json is downloaded in $gaianet_base_dir" + fi fi # 4. Install vector and download vector config file