Commit 8b2b3966b3d8feab4309c42e217ee0e4e7dcb431
1 parent
c655cc89
Exists in
master
and in
17 other branches
Document the git_data_dir attribute
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
README.md
... | ... | @@ -98,6 +98,17 @@ Omnibus-gitlab uses four different directories. |
98 | 98 | - `/var/log/gitlab` contains all log data generated by components of |
99 | 99 | omnibus-gitlab. |
100 | 100 | |
101 | +### Storing Git data in an alternative directory | |
102 | + | |
103 | +By default, omnibus-gitlab stores Git repository data in `/var/opt/gitlab/git-data`. | |
104 | +You can change this location by adding the following line to `/etc/gitlab/gitlab.rb`. | |
105 | + | |
106 | +```ruby | |
107 | +git_data_dir "/mnt/nas/gitlab" | |
108 | +``` | |
109 | + | |
110 | +Run `sudo gitlab-ctl reconfigure` for the change to take effect. | |
111 | + | |
101 | 112 | ## Building your own package |
102 | 113 | |
103 | 114 | See [the separate build documentation](doc/build.md). | ... | ... |