diff --git a/acme.sh/run.sh b/acme.sh/run.sh index 39831d9ed..c3c3fa07b 100755 --- a/acme.sh/run.sh +++ b/acme.sh/run.sh @@ -5,16 +5,21 @@ source ./cert_utils.sh domains=$(cat ../current.json | jq -r '.domains[] | select(.mode | IN("direct", "relay", "old_xtls_direct", "sub_link_only")) | .domain') for d in $domains; do - get_cert $d + get_cert $d & done +wait domains=$(cat ../current.json | jq -r '.domains[] | select(.mode | IN("fake")) | .domain') for d in $domains; do - get_self_signed_cert $d + get_self_signed_cert $d & done +wait for f in ../ssl/*.crt; do d=$(basename "$f" .crt) - get_self_signed_cert $d + get_self_signed_cert $d & done -systemctl reload hiddify-haproxy \ No newline at end of file +wait +systemctl reload hiddify-haproxy +systemctl reload hiddify-singbox +# systemctl reload hiddify-xray \ No newline at end of file