Update Flock.sh

This commit is contained in:
smeb y 2024-07-10 11:34:10 +08:00 committed by GitHub
parent 4d4cf4f33b
commit a8f758f87e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,10 @@ function check_node() {
pm2 logs llm-loss-validator pm2 logs llm-loss-validator
} }
function uninstall_node() {
pm2 delete llm-loss-validator && rm -rf llm-loss-validator
}
# 主菜单 # 主菜单
function main_menu() { function main_menu() {
clear clear
@ -101,10 +105,12 @@ function main_menu() {
echo "请选择要执行的操作:" echo "请选择要执行的操作:"
echo "1. 安装常规节点" echo "1. 安装常规节点"
echo "2. 查看节点日志" echo "2. 查看节点日志"
read -p "请输入选项1-2: " OPTION echo "3. 删除节点"
read -p "请输入选项1-3: " OPTION
case $OPTION in case $OPTION in
1) install_node ;; 1) install_node ;;
2) check_node ;; 2) check_node ;;
3) uninstall_node ;;
*) echo "无效选项。" ;; *) echo "无效选项。" ;;
esac esac
} }