gitea/modules/setting
zeripath c48706ecde
Make AppDataPath absolute against the AppWorkPath if it is not (#19815)
* Make AppDataPath absolute against the AppWorkPath if it is not

There are multiple repeated issues whereby a non-absolute provided
APP_DATA_PATH causes strange issues.

This PR simply absolutes the APP_DATA_PATH against the AppWorkPath if
its not so. It also ensures that AppWorkPath is also always absolute.

Ref #19367

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add logging

Signed-off-by: Andrew Thornton <art27@cantab.net>

* absolute workpath against pwd instead of app path first

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-06 10:43:17 -04:00
..
attachment.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
cache.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
cors.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
cron_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
cron.go
database_sqlite.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
database_test.go
database.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
directory.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
federation.go Federation: return useful statistic information for nodeinfo (#19561) 2022-05-02 21:35:45 +08:00
git.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
i18n.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
indexer_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
indexer.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
lfs.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
log.go Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
mailer.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
markup.go Support ignore all santize for external renderer (#18984) 2022-03-06 16:41:54 +08:00
migrations.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
mime_type_map.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
mirror.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
oauth2_client.go
packages.go Fixed registry host value. (#19363) 2022-04-10 19:57:36 +08:00
picture.go Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 2021-12-16 10:18:38 +08:00
project.go
proxy.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
queue.go Enable deprecation error for v1.17.0 (#18341) 2022-01-20 18:00:38 +01:00
repository.go feat: add DEFAULT_MERGE_STYLE to repository.pull-request section for repo init (#19751) 2022-06-02 23:45:54 -04:00
service.go
session.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
setting_test.go
setting.go Make AppDataPath absolute against the AppWorkPath if it is not (#19815) 2022-06-06 10:43:17 -04:00
storage_test.go
storage.go
task.go Enable deprecation error for v1.17.0 (#18341) 2022-01-20 18:00:38 +01:00
webhook.go Add packagist webhook (#18224) 2022-01-23 21:46:30 +08:00