Drop deprecated GOGS_WORK_DIR use (#2946)
This commit is contained in:
parent
fd09d1ffb8
commit
1f7aab6e19
1 changed files with 0 additions and 4 deletions
|
@ -562,13 +562,9 @@ func getAppPath() (string, error) {
|
||||||
func getWorkPath(appPath string) string {
|
func getWorkPath(appPath string) string {
|
||||||
workPath := ""
|
workPath := ""
|
||||||
giteaWorkPath := os.Getenv("GITEA_WORK_DIR")
|
giteaWorkPath := os.Getenv("GITEA_WORK_DIR")
|
||||||
gogsWorkPath := os.Getenv("GOGS_WORK_DIR")
|
|
||||||
|
|
||||||
if len(giteaWorkPath) > 0 {
|
if len(giteaWorkPath) > 0 {
|
||||||
workPath = giteaWorkPath
|
workPath = giteaWorkPath
|
||||||
} else if len(gogsWorkPath) > 0 {
|
|
||||||
log.Warn(`Usage of GOGS_WORK_DIR is deprecated and will be *removed* in a future release, please consider changing to GITEA_WORK_DIR`)
|
|
||||||
workPath = gogsWorkPath
|
|
||||||
} else {
|
} else {
|
||||||
i := strings.LastIndex(appPath, "/")
|
i := strings.LastIndex(appPath, "/")
|
||||||
if i == -1 {
|
if i == -1 {
|
||||||
|
|
Reference in a new issue