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

Commit 2b99b40

Browse files
committed
2.1.6; no sudo for acme
1 parent 223c712 commit 2b99b40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/v2gun.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export LANG=en_US
44
export LANGUAGE=en_US.UTF-8
55

66
branch="vless"
7-
VERSION="2.1.5"
7+
VERSION="2.1.6"
88

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

234234
get_acmesh() {
235235
colorEcho ${BLUE} "Installing acme.sh"
236-
curl -fsSL https://get.acme.sh | ${sudoCmd} bash
236+
curl -fsSL https://get.acme.sh | bash
237237
}
238238

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

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

968968
identify_the_operating_system_and_architecture
969-
menu
969+
menu

0 commit comments

Comments
 (0)