修改create_config.sh脚本,允许邮箱输入留空并设置默认值
This commit is contained in:
parent
b55d17c821
commit
35cd281724
@ -16,11 +16,10 @@ create_config_with_tls_cert() {
|
||||
bash "$script_dir/update_obfs_password.sh"
|
||||
|
||||
# 获取邮箱
|
||||
read -p "请输入你的邮箱: " user_email
|
||||
while [[ -z "$user_email" ]]; do
|
||||
echo "[错误] 邮箱不能为空"
|
||||
read -p "请输入你的邮箱: " user_email
|
||||
done
|
||||
read -p "请输入你的邮箱(可留空): " user_email
|
||||
if [[ -z "$user_email" ]]; then
|
||||
user_email="example@example.com"
|
||||
fi
|
||||
|
||||
# 获取域名
|
||||
read -p "请输入你的域名 (例如: example.com): " user_domain
|
||||
|
||||
Loading…
Reference in New Issue
Block a user