mirror of https://github.com/gogits/gogs.git
Browse Source
1. `ln` to an existing link will create a new link inside the linked directory. Add checks to avoid. 2. Recursively `chown` is time consuming when directory is big and deep. `chown -R /data` will do this to the whole mounted volume, includes the repository. When repository is big, it takes too much time before start gogs web. This usually fail the readiness probe, and may cause container restart endlessly. This operation is not necessary on container restart. Explicitly define the directories to `chown -R`, so that users can create repository under /data and link into /data/git to avoid `chown -R` on repository if they want to manage the ownership themselves. 3. As /home/git is soft link of /data/git, there is no need to `chown -R ~git/` again.pull/4722/head^2
blu3gui7ar
7 years ago
committed by
GitHub
1 changed files with 4 additions and 4 deletions
Loading…
Reference in new issue