2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

feat: 安装脚本优化

This commit is contained in:
耗子
2023-10-06 00:22:09 +08:00
parent be7063b4fc
commit 046c28a387
16 changed files with 34 additions and 34 deletions

View File

@@ -140,9 +140,9 @@ func UpdatePanel(proxy bool) error {
color.Greenln("正在下载...")
if proxy {
Exec("wget -O /www/panel/panel.zip https://ghproxy.com/" + panelInfo.DownloadUrl)
Exec("wget -T 120 -t 3 -O /www/panel/panel.zip https://ghproxy.com/" + panelInfo.DownloadUrl)
} else {
Exec("wget -O /www/panel/panel.zip " + panelInfo.DownloadUrl)
Exec("wget -T 120 -t 3 -O /www/panel/panel.zip " + panelInfo.DownloadUrl)
}
if !Exists("/www/panel/panel.zip") {