diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-19 06:00:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-19 06:00:08 -0400 |
commit | eda3f8b3b34f15d29bb2e6f1346e15616f508501 (patch) | |
tree | 6c041b6c0450a3e0c3dcd245a8489311fdf2aaa4 /modules/base | |
parent | b32e223db56b270d4dd45aed0c9fd5dd54d0f5f8 (diff) | |
download | gitea-eda3f8b3b34f15d29bb2e6f1346e15616f508501.tar.gz gitea-eda3f8b3b34f15d29bb2e6f1346e15616f508501.zip |
Mirror updates
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index c5d73bbc58..9dccc48f9d 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -43,15 +43,17 @@ type Oauther struct { } var ( - AppVer string - AppName string - AppLogo string - AppUrl string - IsProdMode bool - Domain string - SecretKey string - RunUser string + AppVer string + AppName string + AppLogo string + AppUrl string + IsProdMode bool + Domain string + SecretKey string + RunUser string + RepoRootPath string + ScriptType string InstallLock bool @@ -310,6 +312,7 @@ func NewConfigContext() { if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil { qlog.Fatalf("Fail to create RepoRootPath(%s): %v\n", RepoRootPath, err) } + ScriptType = Cfg.MustValue("repository", "SCRIPT_TYPE", "bash") } func NewBaseServices() { |