diff options
author | Unknwon <u@gogs.io> | 2015-07-31 16:23:17 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-31 16:23:17 +0800 |
commit | 009d692c7d112eabb8871cba76b5df6fa2791521 (patch) | |
tree | d50d8cebe3a90b6ea95c2059b3afce33b154530f /routers/install.go | |
parent | bdd92dc7d117d7c1ff66928ce62d4f2202358b9b (diff) | |
download | gitea-009d692c7d112eabb8871cba76b5df6fa2791521.tar.gz gitea-009d692c7d112eabb8871cba76b5df6fa2791521.zip |
fix install default db option
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/install.go b/routers/install.go index 58c38c3122..f9b5aa106c 100644 --- a/routers/install.go +++ b/routers/install.go @@ -98,11 +98,11 @@ func Install(ctx *middleware.Context) { form.DbName = models.DbCfg.Name form.DbPath = models.DbCfg.Path - curDbOp := "" 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 form.AppName = setting.AppName |