From d6d8a805bfdf672ebe6fbe401031edb517fc34fe Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 16 四月 2020 15:27:39 +0800
Subject: [PATCH] fix startup item
---
controllers/swfsControllers.go | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go
index 450234c..fcb3dbb 100644
--- a/controllers/swfsControllers.go
+++ b/controllers/swfsControllers.go
@@ -164,9 +164,10 @@
}
fmt.Println("res: ", res)
startupItem := res["data"].(string)
- if httpRes.StatusCode == 200 {
- startupItem = string(body)
+ if httpRes.StatusCode != 200 {
+ return
}
+ fmt.Println("Restart startupItem: ", startupItem)
tick := time.Tick(1 * time.Second)
fmt.Println("鍑嗗寮�濮嬮獙璇佽妭鐐规湇鍔�")
for countdown := timeOut; countdown > 0; countdown-- {
@@ -184,7 +185,7 @@
//楠岃瘉鏈嶅姟鐘舵��
func Verification(startupItem string, ip string) bool {
resStatu := false
- fmt.Println(startupItem)
+ fmt.Println("Verification startupItem: ", startupItem)
switch startupItem {
case StartScriptAsVolume:
verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"
--
Gitblit v1.8.0