ssl 解析txt修改
This commit is contained in:
parent
aca18a9c0a
commit
560e42c27d
@ -64,13 +64,15 @@ case $pick_mode in
|
|||||||
'TXT记录')
|
'TXT记录')
|
||||||
declare domain
|
declare domain
|
||||||
declare log_output=$(${HOME}/.acme.sh/acme.sh --issue --dns $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please)
|
declare log_output=$(${HOME}/.acme.sh/acme.sh --issue --dns $domain_str --yes-I-know-dns-manual-mode-enough-go-ahead-please)
|
||||||
declare domain=$( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}')
|
declare -a domain=$( echo "$log_output" | grep "Domain:" | awk -F ": " '{print $2}')
|
||||||
declare txt_value=$(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}')
|
declare -a txt_value=$(echo "$log_output" | grep "TXT value:" | awk -F ": " '{print $2}')
|
||||||
echo "请到dns系统解析TXT记录"
|
echo "请到dns系统解析TXT记录"
|
||||||
echo "名称: "
|
for (( i = 0; i < ${#domain[@]}; i++ )); do
|
||||||
echo $domain
|
echo "需要解析的第$((i+1))条"
|
||||||
echo "文本记录:"
|
echo "名称: ${domain[$i]}"
|
||||||
echo $txt_value
|
echo "文本记录:${txt_value[$i]}"
|
||||||
|
done
|
||||||
|
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user