diff --git a/To-use-the-VLESS-protocol.md b/To-use-the-VLESS-protocol.md index 04374c8..67f37a0 100644 --- a/To-use-the-VLESS-protocol.md +++ b/To-use-the-VLESS-protocol.md @@ -44,11 +44,11 @@ User=v2ray #!/bin/bash -TROJAN_DOMAIN='example.com' +V2RAY_DOMAIN='example.com' -if [[ "$RENEWED_LINEAGE" == "/etc/letsencrypt/live/$TROJAN_DOMAIN" ]]; then - install -m 644 -o v2ray -g v2ray "/etc/letsencrypt/live/$TROJAN_DOMAIN/fullchain.pem" -t /etc/ssl/v2ray/ - install -m 600 -o v2ray -g v2ray "/etc/letsencrypt/live/$TROJAN_DOMAIN/privkey.pem" -t /etc/ssl/v2ray/ +if [[ "$RENEWED_LINEAGE" == "/etc/letsencrypt/live/$V2RAY_DOMAIN" ]]; then + install -m 644 -o v2ray -g v2ray "/etc/letsencrypt/live/$V2RAY_DOMAIN/fullchain.pem" -t /etc/ssl/v2ray/ + install -m 600 -o v2ray -g v2ray "/etc/letsencrypt/live/$V2RAY_DOMAIN/privkey.pem" -t /etc/ssl/v2ray/ sleep "$((RANDOM % 2048))" systemctl restart v2ray.service