diff options
Diffstat (limited to 'internal/route/install.go')
-rw-r--r-- | internal/route/install.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/route/install.go b/internal/route/install.go index 34a7cffc..15ff4439 100644 --- a/internal/route/install.go +++ b/internal/route/install.go @@ -161,6 +161,7 @@ func Install(c *context.Context) { f.HTTPPort = conf.Server.HTTPPort f.AppUrl = conf.Server.ExternalURL f.LogRootPath = conf.Log.RootPath + f.DefaultBranch = conf.Repository.DefaultBranch // E-mail service settings if conf.Email.Enabled { @@ -321,6 +322,7 @@ func InstallPost(c *context.Context, f form.Install) { cfg.Section("").Key("BRAND_NAME").SetValue(f.AppName) cfg.Section("repository").Key("ROOT").SetValue(f.RepoRootPath) + cfg.Section("repository").Key("DEFAULT_BRANCH").SetValue(f.DefaultBranch) cfg.Section("").Key("RUN_USER").SetValue(f.RunUser) cfg.Section("server").Key("DOMAIN").SetValue(f.Domain) cfg.Section("server").Key("HTTP_PORT").SetValue(f.HTTPPort) |