更新 hy2.sh

This commit is contained in:
2026-03-19 15:28:20 +08:00
parent d105b46d68
commit 71d60aa501

4
hy2.sh
View File

@@ -96,7 +96,7 @@ wait_for_apt_lock() {
}
apt_update_and_install_base() {
if ! confirm_yn "即将执行 apt update 并安装基础依赖 curl sed ufw openssl是否继续"; then
if ! confirm_yn "即将执行 apt update 并安装基础依赖 jq curl sed ufw openssl是否继续"; then
red "已取消。"
exit 1
fi
@@ -109,7 +109,7 @@ apt_update_and_install_base() {
blue "==> 安装基础依赖"
wait_for_apt_lock 300 || { red "APT 被占用,无法继续。"; exit 1; }
apt install -y curl sed ufw openssl
apt install -y jq curl sed ufw openssl
}
disable_existing_firewalls() {