Commit 6496dc3c authored by Job van der Voort's avatar Job van der Voort

Merge branch 'doc/import' into 'master'

Make omnibus the default in repo import docs

I hope this reads nicer for people using omnibus packages.

See merge request !1420
parents c0acb28c addb2555
...@@ -19,19 +19,26 @@ your repositories are located by looking at `config/gitlab.yml` under the `gitla ...@@ -19,19 +19,26 @@ your repositories are located by looking at `config/gitlab.yml` under the `gitla
New folder needs to have git user ownership and read/write/execute access for git user and its group: New folder needs to have git user ownership and read/write/execute access for git user and its group:
``` ```
$ mkdir new_group sudo -u git mkdir /var/opt/gitlab/git-data/repositories/new_group
$ chown git:git new_group
$ chmod 770 new_group
``` ```
If you are using an installation from source, replace `/var/opt/gitlab/git-data`
with `/home/git`.
### Copy your bare repositories inside this newly created folder: ### Copy your bare repositories inside this newly created folder:
``` ```
$ cp -r /old/git/foo.git/ /home/git/repositories/new_group/ sudo cp -r /old/git/foo.git /var/opt/gitlab/git-data/repositories/new_group/
# Do this once when you are done copying git repositories
sudo chown -R git:git /var/opt/gitlab/git-data/repositories/new_group/
``` ```
`foo.git` needs to be owned by the git user and git users group. `foo.git` needs to be owned by the git user and git users group.
If you are using an installation from source, replace `/var/opt/gitlab/git-data`
with `/home/git`.
### Run the command below depending on your type of installation: ### Run the command below depending on your type of installation:
#### Omnibus Installation #### Omnibus Installation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment