aboutsummaryrefslogtreecommitdiff
path: root/routers/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/install.go b/routers/install.go
index 58c38c31..f9b5aa10 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