Make omnibus the default in repo import docs
This commit is contained in:
parent
1050f5230e
commit
c68742ed56
1 changed files with 9 additions and 4 deletions
|
@ -19,15 +19,20 @@ 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
|
# Replace /var/opt/gitlab/git-data with /home/git if you are using an
|
||||||
$ chown git:git new_group
|
# installation from source.
|
||||||
$ chmod 770 new_group
|
sudo -u git mkdir /var/opt/gitlab/git-data/repositories/new_group
|
||||||
```
|
```
|
||||||
|
|
||||||
### 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/
|
# Replace /var/opt/gitlab/git-data with /home/git if you are using an
|
||||||
|
# installation from source.
|
||||||
|
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.
|
||||||
|
|
Loading…
Reference in a new issue