mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-12 00:34:20 -04:00
fix install default db option
This commit is contained in:
parent
bdd92dc7d1
commit
009d692c7d
@ -98,11 +98,11 @@ func Install(ctx *middleware.Context) {
|
|||||||
form.DbName = models.DbCfg.Name
|
form.DbName = models.DbCfg.Name
|
||||||
form.DbPath = models.DbCfg.Path
|
form.DbPath = models.DbCfg.Path
|
||||||
|
|
||||||
curDbOp := ""
|
|
||||||
if models.EnableSQLite3 {
|
if models.EnableSQLite3 {
|
||||||
curDbOp = "SQLite3" // Default when enabled.
|
ctx.Data["CurDbOption"] = "SQLite3" // Default when enabled.
|
||||||
|
} else {
|
||||||
|
ctx.Data["CurDbOption"] = "MySQL"
|
||||||
}
|
}
|
||||||
ctx.Data["CurDbOption"] = curDbOp
|
|
||||||
|
|
||||||
// Application general settings
|
// Application general settings
|
||||||
form.AppName = setting.AppName
|
form.AppName = setting.AppName
|
||||||
|
Loading…
Reference in New Issue
Block a user