forgejo/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
cache.go
cors.go
cron.go
cron_test.go
database.go
database_sqlite.go
database_test.go
directory.go
federation.go
git.go
i18n.go
indexer.go
indexer_test.go
lfs.go
log.go
mailer.go
markup.go
migrations.go
mime_type_map.go
mirror.go
oauth2_client.go
packages.go
picture.go
project.go
proxy.go
queue.go
repository.go
service.go
session.go
setting.go
setting_test.go
storage.go
storage_test.go
task.go
webhook.go