Skip to content
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

Don't clean up hardcoded tmp #18983

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Don't clean up hardcoded tmp #18983

merged 2 commits into from
Mar 2, 2022

Conversation

KN4CK3R
Copy link
Member

@KN4CK3R KN4CK3R commented Mar 2, 2022

This PR changes the hardcoded deletion of tmp into two cleanups for both temporary paths.
Now both paths are cleaned up too if a user has configured different paths. We do that too in

[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
[repository.upload]
TEMP_PATH = /data/gitea/uploads

PPROF_DATA_PATH (data/tmp/pprof) is not cleaned up anymore. But that may be better because it may contains useful debugging info. And most users don't have pprof enabled anyway.

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 2, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 2, 2022
@6543 6543 merged commit f3cbdee into go-gitea:main Mar 2, 2022
@6543 6543 added this to the 1.17.0 milestone Mar 2, 2022
@6543 6543 added the type/bug label Mar 2, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 3, 2022
* giteaofficial/main:
  Don't clean up hardcoded `tmp` (go-gitea#18983)
  git backend ignore replace objects (go-gitea#18979)
  Improve the deletion of issue (go-gitea#18945)
  Add note to GPG key response if user has no keys (go-gitea#18961)
  adds restore docs for docker based instances (go-gitea#18844)
  Refactor admin user filter query parameters (go-gitea#18965)
@KN4CK3R KN4CK3R deleted the fix-cleanup branch March 3, 2022 08:48
a1012112796 added a commit to a1012112796/gitea that referenced this pull request Mar 3, 2022
* main:
  ignore missing comment for user notifications (go-gitea#18954)
  allow overwrite artifacts for github releases (go-gitea#18987)
  fix & refactor (go-gitea#18973)
  Don't clean up hardcoded `tmp` (go-gitea#18983)
  git backend ignore replace objects (go-gitea#18979)
  Improve the deletion of issue (go-gitea#18945)
  Add note to GPG key response if user has no keys (go-gitea#18961)
  adds restore docs for docker based instances (go-gitea#18844)
  Refactor admin user filter query parameters (go-gitea#18965)
Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
* Don't clean up hardcoded `tmp`.

* Fixed import.
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants