更新 goedge_add_node.sh
This commit is contained in:
parent
92fe5e1278
commit
943f0f9768
@ -318,12 +318,12 @@ else
|
||||
|
||||
if [[ ! -f /usr/local/goedge/edge-node/configs/api_node.yaml ]]; then
|
||||
sudo tee /usr/local/goedge/edge-node/configs/api_node.yaml >/dev/null <<EOT
|
||||
rpc.endpoints: [ "http://server1.randallanjie.com:8001" ]
|
||||
rpc.endpoints: [ "" ]
|
||||
nodeId: ""
|
||||
secret: ""
|
||||
EOT
|
||||
fi
|
||||
|
||||
sudo sed -i "s|^rpc.endpoints:.*|rpc.endpoints: [ \"$API_HOST\" ]|g" /usr/local/goedge/edge-node/configs/api_node.yaml
|
||||
sudo sed -i "s/^nodeId:.*/nodeId: \"$NODE_UNIQUE_ID\"/g" /usr/local/goedge/edge-node/configs/api_node.yaml
|
||||
sudo sed -i "s/^secret:.*/secret: \"$NODE_SECRET\"/g" /usr/local/goedge/edge-node/configs/api_node.yaml
|
||||
cd /usr/local/goedge/edge-node/bin
|
||||
|
Loading…
Reference in New Issue
Block a user