mirror of https://github.com/mack-a/v2ray-agent
fix(脚本): 修复crontab更新证书可能出现的错误
parent
cd0eb56ff8
commit
b8717c2575
|
@ -1016,10 +1016,7 @@ renewalTLS() {
|
||||||
handleNginx stop
|
handleNginx stop
|
||||||
sudo "$HOME/.acme.sh/acme.sh" --cron --home "$HOME/.acme.sh"
|
sudo "$HOME/.acme.sh/acme.sh" --cron --home "$HOME/.acme.sh"
|
||||||
sudo "$HOME/.acme.sh/acme.sh" --installcert -d "${currentHost}" --fullchainpath /etc/v2ray-agent/tls/"${currentHost}.crt" --keypath /etc/v2ray-agent/tls/"${currentHost}.key" --ecc
|
sudo "$HOME/.acme.sh/acme.sh" --installcert -d "${currentHost}" --fullchainpath /etc/v2ray-agent/tls/"${currentHost}.crt" --keypath /etc/v2ray-agent/tls/"${currentHost}.key" --ecc
|
||||||
handleNginx start
|
|
||||||
|
|
||||||
reloadCore
|
reloadCore
|
||||||
|
|
||||||
else
|
else
|
||||||
echoContent green " ---> 证书有效"
|
echoContent green " ---> 证书有效"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue