Update Quili.sh

This commit is contained in:
smeb y 2024-05-24 19:07:23 +08:00 committed by GitHub
parent dbc169104f
commit 8c287077e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -207,6 +207,16 @@ screen -dmS Quili bash -c 'source /root/.gvm/scripts/gvm && gvm use go1.20.2 &&
}
function backup_set() {
mkdir -p ~/backup
cat ~/ceremonyclient/node/.config/config.yml > ~/backup/config.txt
cat ~/ceremonyclient/node/.config/keys.yml > ~/backup/keys.txt
echo "=======================备份完成请到执行cd ~/backup 下查看备份文件========================================="
}
# 主菜单
function main_menu() {
clear
@ -221,10 +231,12 @@ function main_menu() {
echo "4. 查看服务版本节点日志"
echo "5. 查看服务版本服务状态"
echo "6. 设置快捷键的功能"
echo "================================================================"
echo "=======================单独使用功能============================="
echo "7. 独立启动挖矿(安装好常规节点后搭配使用)"
echo "8. 下载快照直接到达43万高度"
read -p "请输入选项1-3: " OPTION
echo "=========================备份功能================================"
echo "9. 备份文件"
read -p "请输入选项1-9: " OPTION
case $OPTION in
1) install_node ;;
@ -235,6 +247,7 @@ function main_menu() {
6) check_and_set_alias ;;
7) run_node ;;
8) add_snapshots ;;
9) backup_set ;;
*) echo "无效选项。" ;;
esac
}