acme更正
This commit is contained in:
parent
b8986448f4
commit
607fc5978e
@ -67,8 +67,10 @@ case $pick_mode in
|
|||||||
declare domain=$( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}')
|
declare domain=$( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}')
|
||||||
declare txt_value=$(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}')
|
declare txt_value=$(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}')
|
||||||
echo "请到dns系统解析TXT记录"
|
echo "请到dns系统解析TXT记录"
|
||||||
echo "域名: $domain"
|
echo "名称: "
|
||||||
echo "文本记录: $txt_value"
|
echo $domain
|
||||||
|
echo "文本记录:"
|
||||||
|
echo $txt_value
|
||||||
read -p "解析完成请输入 y:" pick
|
read -p "解析完成请输入 y:" pick
|
||||||
if [[ $pick =~ [Yy] ]]; then
|
if [[ $pick =~ [Yy] ]]; then
|
||||||
eval "${HOME}/.acme.sh/acme.sh --renew $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please"
|
eval "${HOME}/.acme.sh/acme.sh --renew $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please"
|
||||||
@ -86,10 +88,6 @@ case $pick_mode in
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
read -p "请输入cloudflare的密钥:" CF_Key
|
read -p "请输入cloudflare的密钥:" CF_Key
|
||||||
if [[ ! $CF_Key =~ \w+ ]];then
|
|
||||||
echo "密钥不合法"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
export CF_Key=$CF_Key
|
export CF_Key=$CF_Key
|
||||||
export CF_Email=$CF_Email
|
export CF_Email=$CF_Email
|
||||||
eval "${HOME}/.acme.sh/acme.sh --issue $domain_str --dns dns_cf"
|
eval "${HOME}/.acme.sh/acme.sh --issue $domain_str --dns dns_cf"
|
||||||
|
Loading…
Reference in New Issue
Block a user