-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
APP_DATA_PATH should not default to directory next to executable file #3079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If no environment variable is set it defaults to current working directory I think |
Looks like it was the case until #3052, nevertheless the documentation says:
All in all, both relative-to-executable and |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
As of now, the lack of
GITEA_CUSTOM
variable results in Gitea attempting to create itsdata
directory next to executable file.This is both counter intuitive and defective, because in most (I guess) cases, the executable will be placed in read-only directory. This may lead to issues like #3052, where developer uses right variable, but user still ends up with broken install.
The
APP_DATA_PATH
should default to${HOME}/gitea
on Linux and similar directories on other supported operating systems. These directories are writable by default and when there's no home directory, it was likely due to conscious admin decision.The text was updated successfully, but these errors were encountered: