更新 Quili.sh
This commit is contained in:
parent
c37d4ddeb2
commit
2bcbb86952
16
Quili.sh
16
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user