Add the feature of creating user.

This commit is contained in:
zicla
2019-06-04 02:39:44 +08:00
parent 53d1ac1d4a
commit ddfeb37114
3 changed files with 68 additions and 6 deletions

View File

@ -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