mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 13:55:42 +03:00
replace path.Join
This commit is contained in:
parent
1490e862cc
commit
d496d0cc4d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue