Add the feature of creating user.
This commit is contained in:
@ -123,6 +123,11 @@ func (this *TankConfig) ReadFromConfigFile() {
|
||||
return
|
||||
}
|
||||
|
||||
//use default server port
|
||||
if this.item.ServerPort != 0 {
|
||||
this.serverPort = this.item.ServerPort
|
||||
}
|
||||
|
||||
//check the integrity
|
||||
itemValidate := this.item.validate()
|
||||
if !itemValidate {
|
||||
@ -139,11 +144,6 @@ func (this *TankConfig) ReadFromConfigFile() {
|
||||
}
|
||||
util.MakeDirAll(this.matterPath)
|
||||
|
||||
//use default server port
|
||||
if this.item.ServerPort != 0 {
|
||||
this.serverPort = this.item.ServerPort
|
||||
}
|
||||
|
||||
this.mysqlUrl = util.GetMysqlUrl(this.item.MysqlPort, this.item.MysqlHost, this.item.MysqlSchema, this.item.MysqlUsername, this.item.MysqlPassword)
|
||||
this.installed = true
|
||||
|
||||
|
Reference in New Issue
Block a user