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