From 7a522df01bec7e5bcecd983bd4b3f20a3297be6d Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 16 四月 2020 16:05:32 +0800
Subject: [PATCH] fix role of other

---
 controllers/swfsControllers.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go
index df77018..5e009e0 100644
--- a/controllers/swfsControllers.go
+++ b/controllers/swfsControllers.go
@@ -62,8 +62,8 @@
 }
 
 func (sc *SeaweedfsController) RoleOfVolumeToMasterController(c *gin.Context) {
-	middleware.AsMaster("master")
-	script.ReplaceLineContentBySearch(config.Option+config.StartScriptAsMaVo, config.Option, config.Server.ScriptPath, config.StartServerScript)
+	middleware.AsMaster("master+volume")
+	util.ResponseFormat(c, code.Success, "瑙掕壊娣诲姞鎴愬姛")
 }
 
 func (sc *SeaweedfsController) RestartServerController(c *gin.Context) {

--
Gitblit v1.8.0