Update Titan.sh

This commit is contained in:
smeb y 2024-03-14 17:04:37 +08:00 committed by GitHub
parent dcb60f43f4
commit 646324ac7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,8 @@ start_node() {
if [ "$1" = "first-time" ]; then if [ "$1" = "first-time" ]; then
echo "首次启动节点..." echo "首次启动节点..."
# 下载并解压 titan-node 到 /usr/local/bin # 下载并解压 titan-node 到 /usr/local/bin
sudo apt update
sudo apt install screen -y
echo "正在下载并解压 titan-node..." echo "正在下载并解压 titan-node..."
wget -c https://github.com/Titannet-dao/titan-node/releases/download/0.1.12/titan_v0.1.12_linux_amd64.tar.gz -O - | sudo tar -xz -C /usr/local/bin --strip-components=1 wget -c https://github.com/Titannet-dao/titan-node/releases/download/0.1.12/titan_v0.1.12_linux_amd64.tar.gz -O - | sudo tar -xz -C /usr/local/bin --strip-components=1
titan-edge daemon start --init --url https://test-locator.titannet.io:5000/rpc/v0 titan-edge daemon start --init --url https://test-locator.titannet.io:5000/rpc/v0