diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-01-21 17:14:46 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-01-21 17:14:46 +0300 |
commit | c68742ed560b0bbf84c9fe6f6707cf47e9ed792c (patch) | |
tree | 5a6f21dbbbe5ac43c7f032e88859a50b028cc1df /doc/raketasks/import.md | |
parent | 1050f5230eec21cf47d5af262a1b3e62c07fec5d (diff) |
Make omnibus the default in repo import docs
Diffstat (limited to 'doc/raketasks/import.md')
-rw-r--r-- | doc/raketasks/import.md | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md index 32fe4dc8d0a..dbce6aae895 100644 --- a/doc/raketasks/import.md +++ b/doc/raketasks/import.md @@ -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: ``` -$ mkdir new_group -$ chown git:git new_group -$ chmod 770 new_group +# Replace /var/opt/gitlab/git-data with /home/git if you are using an +# installation from source. +sudo -u git mkdir /var/opt/gitlab/git-data/repositories/new_group ``` ### 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. |