summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-19 06:00:08 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-19 06:00:08 -0400
commiteda3f8b3b34f15d29bb2e6f1346e15616f508501 (patch)
tree6c041b6c0450a3e0c3dcd245a8489311fdf2aaa4 /modules/base
parentb32e223db56b270d4dd45aed0c9fd5dd54d0f5f8 (diff)
downloadgitea-eda3f8b3b34f15d29bb2e6f1346e15616f508501.tar.gz
gitea-eda3f8b3b34f15d29bb2e6f1346e15616f508501.zip
Mirror updates
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/conf.go19
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() {