Browse Source

0.3.4 (#412)

* 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 (王豫) <tigerwang@outlook.com>
link 2 years ago
parent
commit
364fbf01f5
1 changed files with 6 additions and 2 deletions
  1. 6 2
      service/system.go

+ 6 - 2
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 {