Update 0g.sh

This commit is contained in:
smeb y 2024-06-22 00:41:24 +08:00 committed by GitHub
parent a73895e061
commit 77f6fee75a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
0g.sh
View File

@ -114,6 +114,9 @@ function install_node() {
# 使用 PM2 启动节点进程 # 使用 PM2 启动节点进程
pm2 start 0gchaind -- start && pm2 save && pm2 startup pm2 start 0gchaind -- start && pm2 save && pm2 startup
curl -L https://snapshots.dadunode.com/0gchain/0gchaind_latest_tar.lz4 | tar -I lz4 -xf - -C $HOME/.0gchain/data
pm2 restart 0gchaind
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量===========================' echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='
} }