From eda3f8b3b34f15d29bb2e6f1346e15616f508501 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 19 Apr 2014 06:00:08 -0400 Subject: Mirror updates --- modules/base/conf.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/base/conf.go b/modules/base/conf.go index c5d73bbc..9dccc48f 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() { -- cgit v1.2.3