Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
下载客户端时默认使用--delete参数
Browse files Browse the repository at this point in the history
  • Loading branch information
perrornet committed Feb 26, 2022
1 parent d869395 commit d1e5298
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/handles/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ func (z ZipParams) build(filename, secretKey, serverPort, serverHost string) []b
args = append(args, "install")
if strings.ToLower(z.ClientSystemType) == "windows" { // bat
args = []string{
fmt.Sprintf("%s\npause", strings.Join(args, " ")),
fmt.Sprintf("%s --delete\npause", strings.Join(args, " ")),
}
} else {
args = []string{fmt.Sprintf("chmod +x %s\n%s", fmt.Sprintf("%s", filename), strings.Join(args, " "))}
args = []string{fmt.Sprintf("chmod +x %s\n%s --delete", fmt.Sprintf("%s", filename), strings.Join(args, " "))}
}
case "backend":
if strings.ToLower(z.ClientSystemType) == "windows" { // bat
Expand Down
2 changes: 1 addition & 1 deletion cmd/miner-proxy/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
let datas = data.data.split("/")
let help = `
<p>1. 复制 <code>wget ${document.URL.substr(0, document.URL.length - 1) + data.data} && unzip ${datas[datas.length - 1]}</code> 如果提示 "unzip: command not found", 请运行<code>yum install -y unzip zip</code> 或者 <code>apt install -y unzip zip</code></p>
<p>2. 复制 <code>cd ./${datas[datas.length - 1].split("?")[1]}</code> 运行</p>
<p>2. 复制 <code>cd ./${datas[datas.length - 1].split("?")[1].split("=")[1]}</code> 运行</p>
<p>3. 复制 <code>sudo su</code> 运行, 如果提示输入密码, 请输入您的密码</p>
<p>4. 复制 <code>chmod +x ./run.sh && ./run.sh</code> 运行即可</p>
`
Expand Down

0 comments on commit d1e5298

Please sign in to comment.