Skip to content

Commit

Permalink
Fix Xonotic script code
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son committed May 4, 2023
1 parent 5f99684 commit 0850a9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
1 change: 1 addition & 0 deletions scripts/usecases/xonotic/startServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ else
fi

appendConfig="port $serverPort\nhostname \"$serverName\"\nmaxplayers $numMaxUser\nbot_number $numBot"
sudo mkdir -p ~/.xonotic/data
sudo cp ~/Xonotic/server/server.cfg ~/.xonotic/data
sudo echo -e "${appendConfig}" >> ~/.xonotic/data/server.cfg

Expand Down
35 changes: 0 additions & 35 deletions src/core/mcis/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,41 +219,6 @@ func CoreGetMcisVmAction(nsId string, mcisId string, vmId string, action string)
}
}

/* Deprecated
// ControlMcis is func to control MCIS
func ControlMcis(nsId string, mcisId string, action string) error {
key := common.GenMcisKey(nsId, mcisId, "")
fmt.Println("[ControlMcis] " + key + " to " + action)
keyValue, err := common.CBStore.Get(key)
if err != nil {
common.CBLog.Error(err)
return err
}
fmt.Println("<" + keyValue.Key + "> \n" + keyValue.Value)
vmList, err := ListVmId(nsId, mcisId)
if err != nil {
common.CBLog.Error(err)
return err
}
if len(vmList) == 0 {
return nil
}
fmt.Println("vmList ", vmList)
for _, v := range vmList {
ControlVm(nsId, mcisId, v, action)
}
return nil
//need to change status
}
*/

// ControlMcisAsync is func to control MCIS async
func ControlMcisAsync(nsId string, mcisId string, action string, force bool) error {

Expand Down

0 comments on commit 0850a9a

Please sign in to comment.