Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
2.1.6; no sudo for acme
Browse files Browse the repository at this point in the history
  • Loading branch information
phlinhng committed Nov 25, 2020
1 parent 223c712 commit 2b99b40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/v2gun.sh
Expand Up @@ -4,7 +4,7 @@ export LANG=en_US
export LANGUAGE=en_US.UTF-8

branch="vless"
VERSION="2.1.5"
VERSION="2.1.6"

if [[ $(/usr/bin/id -u) -ne 0 ]]; then
sudoCmd="sudo"
Expand Down Expand Up @@ -233,16 +233,16 @@ preinstall() {

get_acmesh() {
colorEcho ${BLUE} "Installing acme.sh"
curl -fsSL https://get.acme.sh | ${sudoCmd} bash
curl -fsSL https://get.acme.sh | bash
}

get_cert() {
colorEcho ${BLUE} "Issuing certificate"
${sudoCmd} /root/.acme.sh/acme.sh --issue -d "$1" -w /var/www/html --keylength ec-256
~/.acme.sh/acme.sh --issue -d "$1" -w /var/www/html --keylength ec-256

# install certificate
colorEcho ${BLUE} "Installing certificate"
${sudoCmd} /root/.acme.sh/acme.sh --install-cert --ecc -d "$1" \
${sudoCmd} ~/.acme.sh/acme.sh --install-cert --ecc --force -d "$1" \
--key-file /etc/ssl/v2ray/key.pem --fullchain-file /etc/ssl/v2ray/fullchain.pem \
--reloadcmd "chmod 644 /etc/ssl/v2ray/fullchain.pem; chmod 644 /etc/ssl/v2ray/key.pem; systemctl restart v2ray"
}
Expand Down Expand Up @@ -966,4 +966,4 @@ menu() {
}

identify_the_operating_system_and_architecture
menu
menu

0 comments on commit 2b99b40

Please sign in to comment.