Create subdirectory on install process #229

Closed
opened 2025-11-02 03:14:45 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @camlafit on GitHub (Jan 13, 2017).

  • Gitea version (or commit ref): 1.0.1
  • Can you reproduce the bug at https://try.gitea.io:
    • [x ] Not relevant
  • Log gist:

Description

During installation, if repository path is two level depth or more, gitea can't create repositories directory. A workaround is to create it before install process.

Should be usefull to allow a recursive mkdir to all directories creation during installation step.

Originally created by @camlafit on GitHub (Jan 13, 2017). - Gitea version (or commit ref): 1.0.1 - Can you reproduce the bug at https://try.gitea.io: - [x ] Not relevant - Log gist: ## Description During installation, if repository path is two level depth or more, gitea can't create repositories directory. A workaround is to create it before install process. Should be usefull to allow a recursive mkdir to all directories creation during installation step.
GiteaMirror added the issue/not-a-bug label 2025-11-02 03:14:45 -06:00
Author
Owner

@shyim commented on GitHub (Jan 14, 2017):

Gitea creates currently recrusive. https://github.com/go-gitea/gitea/blob/master/routers/install.go#L183
Which os have you tested it?
I have tried on windows and it works correctly.

@shyim commented on GitHub (Jan 14, 2017): Gitea creates currently recrusive. https://github.com/go-gitea/gitea/blob/master/routers/install.go#L183 Which os have you tested it? I have tried on windows and it works correctly.
Author
Owner

@tboerger commented on GitHub (Jan 16, 2017):

Can somebody verify that it works on linux as expected?

@tboerger commented on GitHub (Jan 16, 2017): Can somebody verify that it works on linux as expected?
Author
Owner

@bkcsoft commented on GitHub (Jan 16, 2017):

I would really like to see the logs for this, I'm guessing it's a permission-error.

@bkcsoft commented on GitHub (Jan 16, 2017): I would really like to see the logs for this, I'm guessing it's a permission-error.
Author
Owner

@camlafit commented on GitHub (Jan 17, 2017):

Hi

I can do a test tomorrow. I use 386 linux binary on jessie.

@camlafit commented on GitHub (Jan 17, 2017): Hi I can do a test tomorrow. I use 386 linux binary on jessie.
Author
Owner

@Bwko commented on GitHub (Jan 17, 2017):

@tboerger it works as expected on linux. The Gitea installer created this repository path /home/bwko/multiple/levels/deep/some/more/levels/this/works

@Bwko commented on GitHub (Jan 17, 2017): @tboerger it works as expected on linux. The Gitea installer created this repository path `/home/bwko/multiple/levels/deep/some/more/levels/this/works`
Author
Owner

@tboerger commented on GitHub (Jan 17, 2017):

So maybe it's really just a permission issue?!

@tboerger commented on GitHub (Jan 17, 2017): So maybe it's really just a permission issue?!
Author
Owner

@camlafit commented on GitHub (Jan 21, 2017):

Hi

Then I redo test following these options.

  • binary path : /var/opt/gitea/gitea
  • execution : su -l git -s /bin/bash -c "/var/opt/gitea/gitea web --config /var/opt/gitea/test/custom/conf/app.ini"
  • repositories path asked : /var/opt/gitea/test/repositories
  • log path asked : /var/opt/gitea/test/log

version 1.0.1
debian jessie 386

And yes looks ok, probaly a mistake from mine, sorry. Maybe as presumed by @tboerger a permission issue on mine previous test.

@camlafit commented on GitHub (Jan 21, 2017): Hi Then I redo test following these options. - binary path : **/var/opt/gitea/gitea** - execution : **su -l git -s /bin/bash -c "/var/opt/gitea/gitea web --config /var/opt/gitea/test/custom/conf/app.ini"** - repositories path asked : **/var/opt/gitea/test/repositories** - log path asked : **/var/opt/gitea/test/log** version 1.0.1 debian jessie 386 And yes looks ok, probaly a mistake from mine, sorry. Maybe as presumed by @tboerger a permission issue on mine previous test.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#229