更新 hy2.sh
This commit is contained in:
4
hy2.sh
4
hy2.sh
@@ -96,7 +96,7 @@ wait_for_apt_lock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apt_update_and_install_base() {
|
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 "已取消。"
|
red "已取消。"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -109,7 +109,7 @@ apt_update_and_install_base() {
|
|||||||
|
|
||||||
blue "==> 安装基础依赖"
|
blue "==> 安装基础依赖"
|
||||||
wait_for_apt_lock 300 || { red "APT 被占用,无法继续。"; exit 1; }
|
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() {
|
disable_existing_firewalls() {
|
||||||
|
|||||||
Reference in New Issue
Block a user