[PR #5062] [CLOSED] only chown directories during docker setup if necessary. Fix #4425 #17620

Closed
opened 2025-11-02 14:31:12 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5062
Author: @fabian-braun
Created: 10/10/2018
Status: Closed

Base: release/v1.5Head: release/v1.5


📝 Commits (1)

  • 7ebfd06 only chown directories during docker setup if necessary. Fix #4425

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 docker/etc/s6/gitea/setup (+4 -1)

📄 Description

This PR fixes issue #4425 .
Instead of blindly running chown during setup, we check that the directory is not already owned by the correct user. Currently the check is non-recursive for speed (only checks the ownership of top-level directory).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5062 **Author:** [@fabian-braun](https://github.com/fabian-braun) **Created:** 10/10/2018 **Status:** ❌ Closed **Base:** `release/v1.5` ← **Head:** `release/v1.5` --- ### 📝 Commits (1) - [`7ebfd06`](https://github.com/go-gitea/gitea/commit/7ebfd06dbee553c6f3e0a956b3ad4a9d621a5d53) only chown directories during docker setup if necessary. Fix #4425 ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docker/etc/s6/gitea/setup` (+4 -1) </details> ### 📄 Description This PR fixes issue #4425 . Instead of blindly running `chown` during setup, we check that the directory is not already owned by the correct user. Currently the check is non-recursive for speed (only checks the ownership of top-level directory). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:31:12 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17620