fix
This commit is contained in:
parent
a893f6ac86
commit
89e10173c2
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
func getFilePath(srv *Service) (binPath, logsPath string) {
|
func getFilePath(srv *Service) (binPath, logsPath string) {
|
||||||
binPath = filepath.Join(env.MeshEnv.Prefix, srv.ServiceKey)
|
binPath = filepath.Join(env.MeshEnv.Prefix, srv.ServiceKey)
|
||||||
logsPath = filepath.Join(env.MeshEnv.Prefix, "logs", srv.ServiceKey+"@"+srv.Version+".log")
|
logsPath = filepath.Join(env.MeshEnv.Prefix, "logs", srv.ServiceKey+"-"+srv.Version+".log")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ func installExecute(srv string) {
|
||||||
DownloadFile(downUrl, binPath, func(length, downLen int64) {
|
DownloadFile(downUrl, binPath, func(length, downLen int64) {
|
||||||
fmt.Fprintf(os.Stdout, "Total:%d KB, Current:%d KB, Percent:%.2f%%\r", length, downLen, (float32(downLen)/float32(length))*100)
|
fmt.Fprintf(os.Stdout, "Total:%d KB, Current:%d KB, Percent:%.2f%%\r", length, downLen, (float32(downLen)/float32(length))*100)
|
||||||
})
|
})
|
||||||
|
fmt.Println("[6/6] Download Success!")
|
||||||
fmt.Println("[6/6] Restart Microservice:", srv)
|
fmt.Println("[6/6] Restart Microservice:", srv)
|
||||||
service.Start()
|
service.Start()
|
||||||
fmt.Println("Install Successful!")
|
fmt.Println("Install Successful!")
|
||||||
|
|
Loading…
Reference in New Issue