summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-27 14:03:59 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-27 21:39:06 +0800
commitec87a75c000d52bfc2a8dcfc7097c14fe872c376 (patch)
treed849fb1070fe15136538404127099e9a7e0dd302 /routers/install.go
parente6da2cf2cbff4d550cf938548233a59ceef6528e (diff)
downloadgitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.tar.gz
gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.zip
golint fixed for modules/auth
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/routers/install.go b/routers/install.go
index ed8fae15f1..495aa9ab79 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -89,7 +89,7 @@ func Install(ctx *context.Context) {
form.Domain = setting.Domain
form.SSHPort = setting.SSH.Port
form.HTTPPort = setting.HTTPPort
- form.AppUrl = setting.AppURL
+ form.AppURL = setting.AppURL
form.LogRootPath = setting.LogRootPath
// E-mail service settings
@@ -217,8 +217,8 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
return
}
- if form.AppUrl[len(form.AppUrl)-1] != '/' {
- form.AppUrl += "/"
+ if form.AppURL[len(form.AppURL)-1] != '/' {
+ form.AppURL += "/"
}
// Save settings.
@@ -242,7 +242,7 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
cfg.Section("").Key("RUN_USER").SetValue(form.RunUser)
cfg.Section("server").Key("DOMAIN").SetValue(form.Domain)
cfg.Section("server").Key("HTTP_PORT").SetValue(form.HTTPPort)
- cfg.Section("server").Key("ROOT_URL").SetValue(form.AppUrl)
+ cfg.Section("server").Key("ROOT_URL").SetValue(form.AppURL)
if form.SSHPort == 0 {
cfg.Section("server").Key("DISABLE_SSH").SetValue("true")
@@ -328,5 +328,5 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
log.Info("First-time run install finished!")
ctx.Flash.Success(ctx.Tr("install.install_success"))
- ctx.Redirect(form.AppUrl + "user/login")
+ ctx.Redirect(form.AppURL + "user/login")
}