From fca495735f9a80c56b57b9b7c7cd88116373f255 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 01:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dacme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Other/Acme.sh | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Config/Other/Acme.sh b/Config/Other/Acme.sh index e8bc608..1cc5a23 100644 --- a/Config/Other/Acme.sh +++ b/Config/Other/Acme.sh @@ -9,22 +9,21 @@ if [[ ! -d "${HOME}/.acme.sh" ]];then exit fi - echo "请输入需要申请SSL证书的域名" - while(1);do - read -p "不输入退出添加:" domain - if [[ -z $domain ]];then - break - elif [[ $domain =~ "\w+\.[a-z]+" ]];then - echo "域名不合法" - exit - domain_str="$domain_str -d $domain" - fi - done - curl https://get.acme.sh | sh -s "email=$mail" fi declare domain_str='' +echo "请输入需要申请SSL证书的域名" +while(1);do + read -p "不输入退出添加:" domain + if [[ -z $domain ]];then + break + elif [[ $domain =~ "\w+\.[a-z]+" ]];then + echo "域名不合法" + exit + domain_str="$domain_str -d $domain" + fi +done if [[ -z $domain_str ]]; then echo "需要添加的域名不能为空" exit