Skip to content

Commit

Permalink
Use cached registry.wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
juntao authored Apr 15, 2024
1 parent ba5a3b9 commit 7cd4a3a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,12 @@ printf "\n"

# 8 Generate node ID and copy config to dashboard
printf "[+] Downloading the registry.wasm ...\n\n"
curl -s -LO https://github.com/GaiaNet-AI/gaianet-node/raw/main/utils/registry/registry.wasm
# if [ ! -f "$gaianet_base_dir/registry.wasm" ] || [ "$reinstall" -eq 1 ]; then
# printf "[+] Downloading the registry.wasm ...\n\n"
# curl -s -LO https://github.com/GaiaNet-AI/gaianet-node/raw/main/utils/registry/registry.wasm
# else
# printf "[+] Using cached registry ...\n\n"
# fi
if [ ! -f "$gaianet_base_dir/registry.wasm" ] || [ "$reinstall" -eq 1 ]; then
printf "[+] Downloading the registry.wasm ...\n\n"
curl -s -LO https://github.com/GaiaNet-AI/gaianet-node/raw/main/utils/registry/registry.wasm
else
printf "[+] Using cached registry ...\n\n"
fi
printf "[+] Generating node ID ...\n"
wasmedge --dir .:. registry.wasm
printf "\n"
Expand Down

0 comments on commit 7cd4a3a

Please sign in to comment.