fix(脚本): 修改txtValue为-开头时导致grep匹配错误问题
parent
13114c9a76
commit
9f237506a4
|
@ -1224,7 +1224,7 @@ acmeInstallSSL() {
|
|||
if [[ "${addDNSTXTRecordStatus}" == "y" ]]; then
|
||||
local txtAnswer=
|
||||
txtAnswer=$(dig +nocmd "_acme-challenge.${dnsTLSDomain}" txt +noall +answer | awk -F "[\"]" '{print $2}')
|
||||
if echo "${txtAnswer}" | grep -q "${txtValue}"; then
|
||||
if echo "${txtAnswer}" | grep -q "^${txtValue}"; then
|
||||
echoContent green " ---> TXT记录验证通过"
|
||||
echoContent green " ---> 生成证书中"
|
||||
sudo "$HOME/.acme.sh/acme.sh" --renew -d "*.${dnsTLSDomain}" -d "${dnsTLSDomain}" --yes-I-know-dns-manual-mode-enough-go-ahead-please --ecc --server "${sslType}" ${installSSLIPv6} 2>&1 | tee -a /etc/v2ray-agent/tls/acme.log >/dev/null
|
||||
|
@ -5411,7 +5411,7 @@ menu() {
|
|||
cd "$HOME" || exit
|
||||
echoContent red "\n=============================================================="
|
||||
echoContent green "作者:mack-a"
|
||||
echoContent green "当前版本:v2.6.15"
|
||||
echoContent green "当前版本:v2.6.16"
|
||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||
echoContent green "描述:八合一共存脚本\c"
|
||||
showInstallStatus
|
||||
|
|
Loading…
Reference in New Issue