From e335e48f99739c97a0cda765c4a5f6af080b6b93 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Sat, 15 Aug 2020 14:05:32 +0000 Subject: [PATCH] TROJAN_DOMAIN to V2RAY_DOMAIN --- To-use-the-VLESS-protocol.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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