summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-21 03:27:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-21 03:27:59 -0400
commitc1576b4c400376f22ec25012a6ca66e9c5539ee4 (patch)
treeb8e682560055e8e91448d701e798edc3450a86c4 /modules
parent5373a3093eaf9bc9ced7a6b3335ccf1b17fd343e (diff)
downloadgitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.tar.gz
gitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.zip
Add admin add user
Diffstat (limited to 'modules')
-rw-r--r--modules/base/conf.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 3050b915fa..bf054ec3c5 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -32,6 +32,7 @@ var (
AppUrl string
Domain string
SecretKey string
+ RunUser string
RepoRootPath string
Cfg *goconfig.ConfigFile
@@ -179,6 +180,7 @@ func NewConfigContext() {
AppUrl = Cfg.MustValue("server", "ROOT_URL")
Domain = Cfg.MustValue("server", "DOMAIN")
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
+ RunUser = Cfg.MustValue("", "RUN_USER")
// Determine and create root git reposiroty path.
RepoRootPath = Cfg.MustValue("repository", "ROOT")