Skip to content

Commit

Permalink
chore: update gaianet start command
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Aug 15, 2024
1 parent a8bc020 commit 3c2fd54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gaianet
Original file line number Diff line number Diff line change
Expand Up @@ -1181,17 +1181,17 @@ start() {

# 5. notify server info
sleep 2
info " Notify server info"
printf "[+] Notify server info\n\n"
status_code=$(curl -o /dev/null -s -w "%{http_code}\n" \
-X GET http://localhost:$assistant_port/retrieve/info \
-H 'accept: application/json' \
-H 'Content-Type: application/json')
if [ "$status_code" -eq 200 ]; then
info " * The server info received."
info " The server info has been received."
elif [ "$status_code" -eq 500 ]; then
error " * Failed to send server information to $check_node_url"
error " Failed to send server information to $check_node_url"
else
error " * Failed to retrieve API Server info."
error " Failed to retrieve API Server info."
fi

info ">>> To stop the GaiaNet node, run the command: gaianet stop <<<"
Expand Down

0 comments on commit 3c2fd54

Please sign in to comment.