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

Rootless Docker - Mistake with the repo-avatars parent folder name #22637

Merged
merged 10 commits into from Jan 31, 2023

Conversation

melroy89
Copy link
Contributor

@melroy89 melroy89 commented Jan 28, 2023

There was a mistake when choosing the structure for the repo avatars parent folder and it added a spurious /gitea.

The data directory should contain folders like:

  • attachments/
  • avatars/
  • log/
  • repo-avatars/

Somebody made a big mistake when choosing this legacy folder structure `data/gitea/`, which will result into: `/var/lib/gitea/data/gitea/repo-avatars`.

And you don't want to have a gitea folder anymore inside the data directory...!
@melroy89 melroy89 changed the title Big mistake with the repo-avatars parent folder name Rootless Docker - Mistake with the repo-avatars parent folder name Jan 28, 2023
@wolfogre
Copy link
Member

I would say, it's not a big mistake, it's just a mistake.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 28, 2023
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 28, 2023
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jan 28, 2023

I would say, it's not a big mistake, it's just a mistake.

But if this PR gets merged, there will be the biggest mistake. It breaks the existing users Out-dated


Update: it seems fine

@wolfogre
Copy link
Member

wolfogre commented Jan 28, 2023

But if this PR gets merged, there will be the biggest mistake. It breaks the existing users ....

I don't think so, the file is a template to generate the config file, and it works only if there's no config file. I believe this is the only place it's used:

envsubst < /etc/templates/app.ini > ${GITEA_APP_INI}

@wxiaoguang
Copy link
Contributor

But if this PR gets merged, there will be the biggest mistake. It breaks the existing users ....

I don't think so, the file is a template to generate the config file, and it works only if there's no config file. I believe this is the only place it's used:

Yup, you are right, edited the previous comment, I worried too much (in history, some users just do re-install without app.ini and causes various problems, I think there won't be such problem any more nowadays).

@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 Jan 28, 2023
@lunny lunny added topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile topic/distribution This PR changes something about the packaging of Gitea reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. and removed topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile labels Jan 28, 2023
@melroy89
Copy link
Contributor Author

melroy89 commented Jan 28, 2023

This is the only folder that was left over in this wrong directory right?

Last night I did a major migration from postgresql database as well as gitea rootless migration. Which involved moving quite some directories.

So my point is; maybe there are other folder locations/configurations that also need to be updated. Or this is the last left over change..?

@lunny
Copy link
Member

lunny commented Jan 28, 2023

This is the only folder that was left over in this wrong directory right?

Last night I did a major migration from postgresql database as well as gitea rootless migration. Which involved moving quite some directories.

So my point is; maybe there are other folder locations/configurations that also need to be updated. Or this is the last left over change..?

Looks like it's the last one in this app.ini template file.

@melroy89
Copy link
Contributor Author

I see a lot commits getting pushed into this PR? Is that intentionally?

Or is the PR already merge into main?

@jolheiser
Copy link
Member

It is when someone updates the branch from main, as we require PRs to be up-to-date before merging. It's in the list to get merged. 🙂

@zeripath zeripath merged commit fd29071 into go-gitea:main Jan 31, 2023
@zeripath
Copy link
Contributor

Merged using 🪄 as this could not fail tests.

@zeripath
Copy link
Contributor

Please send backport

@jolheiser jolheiser removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jan 31, 2023
@melroy89
Copy link
Contributor Author

melroy89 commented Feb 1, 2023

Merged using 🪄 as this could not fail tests.

That depends how you wrote your tests and what it is testing 😉

@melroy89
Copy link
Contributor Author

melroy89 commented Feb 1, 2023

It is when someone updates the branch from main, as we require PRs to be up-to-date before merging. It's in the list to get merged. slightly_smiling_face

@jolheiser I can still give feedback on this response?

It's a good practice to use git rebase instead of git merge for this. Which gives a much cleaner result.

@delvh
Copy link
Member

delvh commented Feb 1, 2023

Well… not if you use git merge --squash like we do.

@melroy89
Copy link
Contributor Author

melroy89 commented Feb 1, 2023

...then it doesn't matter indeed, it will squashed into 1 commit which will produce a new commit on the main branch.

@lunny
Copy link
Member

lunny commented Feb 2, 2023

...then it doesn't matter indeed, it will squashed into 1 commit which will produce a new commit on the main branch.

If you merge, all pull request review history(the checkbox on the files of the pull request) could be reserved. If there are many files changed on the pull request, it's very useful. But if you rebase, those history will be disappeared.

zjjhot added a commit to zjjhot/gitea that referenced this pull request Feb 2, 2023
* upstream/main: (35 commits)
  Small refactor for loading PRs (go-gitea#22652)
  Allow setting access token scope by CLI (go-gitea#22648)
  Add main landmark to templates and adjust titles (go-gitea#22670)
  Fix cache-control header clearing comment text when editing issue (go-gitea#22604)
  Enable `@<user>`- completion popup on the release description textarea (go-gitea#22359)
  Add Conda package registry (go-gitea#22262)
  Add user secrets (go-gitea#22191)
  Add missing close bracket in imagediff (go-gitea#22710)
  Explain that the no-access team unit does not affect public repositories (go-gitea#22661)
  Fix bugs with WebAuthn preventing sign in and registration. (go-gitea#22651)
  Add more events details supports for actions (go-gitea#22680)
  Improve checkbox accessibility a bit by adding the title attribute (go-gitea#22593)
  Add repository setting to enable/disable releases unit (go-gitea#22671)
  Use relative url in actions view (go-gitea#22675)
  Fix ref to trigger Actions (go-gitea#22679)
  Rootless Docker - Mistake with the repo-avatars parent folder name (go-gitea#22637)
  Fix missing title and filter in issue sidebar project menu (go-gitea#22557)
  Fix wrong hint when deleting a branch successfully from pull request UI (go-gitea#22673)
  Add Contributed backport command (go-gitea#22643)
  Fix typo in command-line.en-us.md (go-gitea#22681)
  ...
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
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. topic/distribution This PR changes something about the packaging of Gitea
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants