From 2bcbb86952b1c602127999fbe24c9af00938e1f2 Mon Sep 17 00:00:00 2001 From: smeb_y Date: Sun, 13 Oct 2024 10:07:58 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Quili.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Quili.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Quili.sh b/Quili.sh index c53038a..a7ed23c 100644 --- a/Quili.sh +++ b/Quili.sh @@ -181,7 +181,7 @@ function add_snapshots() { apt install unzip -y rm -r $HOME/ceremonyclient/node/.config/store && wget -qO- https://snapshots.cherryservers.com/quilibrium/store.zip > /tmp/store.zip && unzip -j -o /tmp/store.zip -d $HOME/ceremonyclient/node/.config/store && rm /tmp/store.zip -screen -dmS Quili bash -c 'source /root/.gvm/scripts/gvm && gvm use go1.20.2 && cd ~/ceremonyclient/node && ./release_autorun.sh' +screen -dmS Quili bash -c 'source /root/.gvm/scripts/gvm && gvm use go1.20.2 && cd ~/ceremonyclient/node && ./node-1.4.21.1-linux-arm64' } @@ -236,7 +236,7 @@ fi chmod +x release_autorun.sh # 创建一个screen会话并运行命令 -screen -dmS Quili bash -c './release_autorun.sh' +screen -dmS Quili bash -c './node-1.4.21.1-linux-arm64' echo "=======================已解锁CPU性能限制并启动quilibrium 挖矿请退出脚本使用screen 命令或者使用查看日志功能查询状态=========================================" @@ -346,7 +346,7 @@ git switch release-cdn chmod +x release_autorun.sh # 创建一个screen会话并运行命令 -screen -dmS Quili bash -c './release_autorun.sh' +screen -dmS Quili bash -c './node-1.4.21.1-linux-arm64' } @@ -356,6 +356,12 @@ function setup_grpc() { echo "gRPC 安装后,等待约30分钟生效" } +function update_new() { +mkdir -p ~/scripts && \ +wget -O ~/scripts/qnode_service_change_autorun_to_bin.sh "https://raw.githubusercontent.com/lamat1111/QuilibriumScripts/main/tools/qnode_service_change_autorun_to_bin.sh" && \ +chmod +x ~/scripts/qnode_service_change_autorun_to_bin.sh && \ +~/scripts/qnode_service_change_autorun_to_bin.sh +} # 主菜单 function main_menu() { @@ -374,6 +380,7 @@ function main_menu() { echo "11. 安装常规节点(针对contabo)" echo "12. 升级节点程序版本(针对contabo)" echo "13. 安装grpc" + echo "14. 升级2.0(截至10.13日,2.0还未正式开始挖矿,请根据实际情况确认呢是否升级)" echo "=======================单独使用功能=============================" echo "4. 独立启动挖矿(安装好常规节点后搭配使用)" echo "=========================备份功能================================" @@ -381,7 +388,7 @@ function main_menu() { echo "=========================收米查询================================" echo "6. 查询余额(需要先安装grpc)" - read -p "请输入选项(1-13): " OPTION + read -p "请输入选项(1-14): " OPTION case $OPTION in 1) install_node ;; @@ -396,6 +403,7 @@ function main_menu() { 11) install_node_contabo ;; 12) update_node_contabo ;; 13) setup_grpc ;; + 14) update_new ;; *) echo "无效选项。" ;; esac }