更新 hy2.sh

This commit is contained in:
2026-03-19 14:24:22 +08:00
parent 7988ed22f3
commit 2b44690e66

5
hy2.sh
View File

@@ -48,7 +48,8 @@ confirm_yn() {
} }
generate_password() { generate_password() {
tr -dc 'A-Za-z0-9' </dev/urandom | head -c 24 openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | head -c 24
echo
} }
get_server_ip() { get_server_ip() {
@@ -69,7 +70,7 @@ apt_update_and_install_base() {
apt update -y apt update -y
blue "==> 安装基础依赖" blue "==> 安装基础依赖"
apt install -y curl sed ufw apt install -y curl sed ufw openssl
} }
disable_existing_firewalls() { disable_existing_firewalls() {