修改create_config.sh脚本,允许邮箱输入留空并设置默认值

This commit is contained in:
Olia Lisa 2025-12-30 13:02:47 +08:00
parent b55d17c821
commit 35cd281724

View File

@ -16,11 +16,10 @@ create_config_with_tls_cert() {
bash "$script_dir/update_obfs_password.sh" bash "$script_dir/update_obfs_password.sh"
# 获取邮箱 # 获取邮箱
read -p "请输入你的邮箱: " user_email read -p "请输入你的邮箱(可留空): " user_email
while [[ -z "$user_email" ]]; do if [[ -z "$user_email" ]]; then
echo "[错误] 邮箱不能为空" user_email="example@example.com"
read -p "请输入你的邮箱: " user_email fi
done
# 获取域名 # 获取域名
read -p "请输入你的域名 (例如: example.com): " user_domain read -p "请输入你的域名 (例如: example.com): " user_domain