zhou.xiaoning 2 gadi atpakaļ
vecāks
revīzija
34921187a3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      api/console/update.go

+ 2 - 1
api/console/update.go

@@ -56,7 +56,7 @@ func runch(filename string) {
 		fmt.Println("filename:", filename)
 		fmt.Println("filename:", filename)
 		cmd := exec.Command("sh", "./update.sh", filename)
 		cmd := exec.Command("sh", "./update.sh", filename)
 		fmt.Println("cmd param:", cmd.Args)
 		fmt.Println("cmd param:", cmd.Args)
-		// cmd.Run()
+		cmd.Run()
 		out, err := cmd.CombinedOutput()
 		out, err := cmd.CombinedOutput()
 		if err != nil {
 		if err != nil {
 			fmt.Printf("update out:\n%s\n", string(out))
 			fmt.Printf("update out:\n%s\n", string(out))
@@ -64,6 +64,7 @@ func runch(filename string) {
 		fmt.Printf("update out:\n%s\n", string(out))
 		fmt.Printf("update out:\n%s\n", string(out))
 	} else {
 	} else {
 		cmd := exec.Command("sh", "./update.sh")
 		cmd := exec.Command("sh", "./update.sh")
+		cmd.Run()
 		out, err := cmd.CombinedOutput()
 		out, err := cmd.CombinedOutput()
 		if err != nil {
 		if err != nil {
 			fmt.Printf("update out:\n%s\n", string(out))
 			fmt.Printf("update out:\n%s\n", string(out))