From a97327e0361cda4bf6eecc58e2704979d3e7d752 Mon Sep 17 00:00:00 2001 From: Jrohy Date: Tue, 8 Sep 2020 21:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=81=E4=B9=A6=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trojan/install.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trojan/install.go b/trojan/install.go index 909455b7..00ee0dfd 100644 --- a/trojan/install.go +++ b/trojan/install.go @@ -99,7 +99,7 @@ func InstallTls() { if !util.IsExists("/root/.acme.sh/acme.sh") { util.RunWebShell("https://get.acme.sh") } - Stop() + util.ExecCommand("systemctl stop trojan-web") util.OpenPort(80) util.ExecCommand(fmt.Sprintf("bash /root/.acme.sh/acme.sh --issue -d %s --debug --standalone --keylength ec-256", domain)) crtFile := "/root/.acme.sh/" + domain + "_ecc" + "/fullchain.cer" @@ -120,6 +120,7 @@ func InstallTls() { } } Restart() + util.ExecCommand("systemctl restart trojan-web") fmt.Println() }