From d2aeb37cb87f0f8cbba602b3dc675c3eec7c0043 Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:29:19 +0800 Subject: [PATCH] Update Artela.sh --- Artela.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Artela.sh b/Artela.sh index dd1db82..f06cb9b 100644 --- a/Artela.sh +++ b/Artela.sh @@ -59,7 +59,6 @@ sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile source $HOME/.bash_profile go version -sleep 1 # 安装所有二进制文件 cd $HOME @@ -109,6 +108,7 @@ LimitNOFILE=10000 WantedBy=multi-user.target EOF + # 重置Tendermint数据 artelad tendermint unsafe-reset-all --home $HOME/.artelad --keep-addr-book @@ -120,9 +120,9 @@ sudo snap install lz4 curl -L https://t-ss.nodeist.net/artela/snapshot_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.artelad --strip-components 2 # 重新加载和启动服务 -sudo systemctl daemon-reload -sudo systemctl enable artelad -sudo systemctl start artelad +sudo -S systemctl daemon-reload +sudo -S systemctl enable artelad +sudo -S systemctl start artelad # 完成设置