更新 noderedeploy.sh
This commit is contained in:
parent
ca5f582c0f
commit
61987e740f
@ -32,8 +32,8 @@ if [ ! -d "/usr/local/goedge" ]; then
|
|||||||
unzip -o edge-node-linux-amd64-plus.zip
|
unzip -o edge-node-linux-amd64-plus.zip
|
||||||
|
|
||||||
# Create or overwrite api_node.yaml from the template
|
# Create or overwrite api_node.yaml from the template
|
||||||
if [ -d "$edge_node_path/configs" ]; then
|
if [ -d "./configs" ]; then
|
||||||
cp "$edge_node_path/configs/api_node.template.yaml" "$edge_node_path/configs/api_node.yaml"
|
cp "./configs/api_node.template.yaml" "$edge_node_path/configs/api_node.yaml"
|
||||||
else
|
else
|
||||||
echo "Configuration directory does not exist. Exiting."
|
echo "Configuration directory does not exist. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
@ -44,7 +44,6 @@ if [ ! -d "/usr/local/goedge" ]; then
|
|||||||
read -p "Enter rpc.endpoints: " rpc_endpoints
|
read -p "Enter rpc.endpoints: " rpc_endpoints
|
||||||
read -p "Enter nodeId: " node_id
|
read -p "Enter nodeId: " node_id
|
||||||
read -p "Enter secret: " secret
|
read -p "Enter secret: " secret
|
||||||
|
|
||||||
# Insert configuration into api_node.yaml
|
# Insert configuration into api_node.yaml
|
||||||
echo "rpc.endpoints: [\"$rpc_endpoints\"]" > "$edge_node_path/configs/api_node.yaml"
|
echo "rpc.endpoints: [\"$rpc_endpoints\"]" > "$edge_node_path/configs/api_node.yaml"
|
||||||
echo "nodeId: \"$node_id\"" >> "$edge_node_path/configs/api_node.yaml"
|
echo "nodeId: \"$node_id\"" >> "$edge_node_path/configs/api_node.yaml"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user