From 8afa24ee77f25109deb5fb04d53dd0ad42dfd37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:25:26 +0800 Subject: [PATCH] Update sb.sh --- sb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sb.sh b/sb.sh index 65e465a..90aadab 100644 --- a/sb.sh +++ b/sb.sh @@ -718,6 +718,10 @@ fi } result_vl_vm_hy_tu(){ +if [[ -f /root/ygkkkca/cert.crt && -f /root/ygkkkca/private.key && -s /root/ygkkkca/cert.crt && -s /root/ygkkkca/private.key ]]; then +ym=`bash ~/.acme.sh/acme.sh --list | tail -1 | awk '{print $1}'` +echo $ym > /root/ygkkkca/ca.log +fi rm -rf /etc/s-box/vm_ws_argo.txt /etc/s-box/vm_ws.txt /etc/s-box/vm_ws_tls.txt wgcfgo vl_port=$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[0].listen_port')