#!/bin/bash

# 提示用户选择版本
echo "请选择要执行的版本:"
echo "宝塔纯净版 BTweb.co"
echo "==================="
echo "1. centos宝塔稳定版"
echo "2. centos宝塔最新版"
echo "==================="

read -p "请输入选项 (1 或 2): " choice

# 执行用户选择的操作
case $choice in
  1)
    echo "正在安装稳定版..."
    yum install -y wget && wget -O install.sh https://install.btweb.co/install/install_6.0.sh && sh install.sh
    ;;
  2)
    echo "正在安装最新版..."
    yum install -y wget && wget -O install.sh https://new.btweb.co/install/install_6.0.sh && sh install.sh
    ;;
  *)
    echo "无效的选项，请重新执行！"
    ;;
esac
