From 364fbf01f56c3b797bac8f2df5449db35a01582e Mon Sep 17 00:00:00 2001 From: link Date: Wed, 27 Jul 2022 18:37:22 +0800 Subject: [PATCH] 0.3.4 (#412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * delete connect * update user * change branch * API feedback (#341) * wip * wip * wip * wip * wip * wip * wip * wip * change branch * update route * change branch * Update route.go * 0.3.4 Function development completed * Update system.go * update ui * Completed v0.3.4 and released alpha * Update gin.go * fix the problem of docker environment variables being displayed more than once * update update shell Co-authored-by: Tiger Wang (王豫) --- service/system.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/service/system.go b/service/system.go index ba9ff44..95ce9aa 100644 --- a/service/system.go +++ b/service/system.go @@ -213,7 +213,12 @@ func (c *systemService) GetNet(physics bool) []string { } func (s *systemService) UpdateSystemVersion(version string) { - command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/update.sh | bash") + if file.Exists(config.AppInfo.LogPath + "/upgrade.log") { + os.Remove(config.AppInfo.LogPath + "/upgrade.log") + } + file.CreateFile(config.AppInfo.LogPath + "/upgrade.log") + //go command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/LinkLeong/casaos-alpha/main/update.sh | bash") + go command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/update.sh | bash") //s.log.Error(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version) //s.log.Error(command2.ExecResultStr(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version)) } @@ -231,7 +236,6 @@ func (s *systemService) ExecUSBAutoMountShell(state string) { } else { command2.OnlyExec("source " + config.AppInfo.ShellPath + "/helper.sh ;USB_Move_File") } - } func (s *systemService) GetSystemConfigDebug() []string {