Browse Source

replace path.Join

tags/v1.2.0-rc1
Unknwon 10 years ago
parent
commit
33fc201de4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/setting/setting.go

+ 2
- 2
modules/setting/setting.go View File

@@ -203,11 +203,11 @@ func NewConfigContext() {

CustomPath = os.Getenv("GOGS_CUSTOM")
if len(CustomPath) == 0 {
CustomPath = path.Join(workDir, "custom")
CustomPath = workDir + "/custom"
}

if len(CustomConf) == 0 {
CustomConf = path.Join(CustomPath, "conf/app.ini")
CustomConf = CustomPath + "/conf/app.ini"
}

if com.IsFile(CustomConf) {


Loading…
Cancel
Save