Commit 4f94bd028770bfe87f5b3ea127a7260bab8b76aa
1 parent
0ee700f9
Exists in
master
and in
54 other branches
Move git home dir to /var/lib/gitlab-shell
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
1 changed file
with
4 additions
and
7 deletions
Show diff stats
specs/gitlab/gitlab-shell.spec
| 1 | 1 | Name: gitlab-shell |
| 2 | 2 | Version: 2.4.0 |
| 3 | -Release: 2%{?dist} | |
| 3 | +Release: 3%{?dist} | |
| 4 | 4 | Summary: Software Development Platform |
| 5 | 5 | |
| 6 | 6 | Group: Development/Tools |
| ... | ... | @@ -30,7 +30,7 @@ http_settings: |
| 30 | 30 | # ca_path: /etc/pki/tls/certs |
| 31 | 31 | self_signed_cert: false |
| 32 | 32 | |
| 33 | -repos_path: "/var/lib/gitlab/repositories/" | |
| 33 | +repos_path: "/var/lib/gitlab-shell/repositories/" | |
| 34 | 34 | auth_file: "/var/lib/gitlab-shell/.ssh/authorized_keys" |
| 35 | 35 | |
| 36 | 36 | redis: |
| ... | ... | @@ -59,19 +59,16 @@ cp -r . %{buildroot}/usr/lib/gitlab-shell |
| 59 | 59 | %post |
| 60 | 60 | groupadd git || true |
| 61 | 61 | if ! id git; then |
| 62 | - adduser --system --home-dir /usr/lib/gitlab --no-create-home --gid git git | |
| 62 | + adduser --system --home-dir /usr/lib/gitlab --gid git git | |
| 63 | 63 | fi |
| 64 | 64 | |
| 65 | 65 | mkdir -p /var/log/gitlab-shell |
| 66 | 66 | mkdir -p /var/lib/gitlab-shell/.ssh |
| 67 | - | |
| 68 | -ln -s /var/lib/gitlab-shell/.ssh /usr/lib/gitlab/.ssh | |
| 67 | +mkdir -p /var/lib/gitlab-shell/repositories | |
| 69 | 68 | |
| 70 | 69 | chown -R git:git /var/log/gitlab-shell |
| 71 | 70 | chown -R git:git /var/lib/gitlab-shell |
| 72 | 71 | |
| 73 | -ln -s /var/lib/gitlab/.gitlab_shell_secret /usr/lib/gitlab-shell/.gitlab_shell_secret | |
| 74 | - | |
| 75 | 72 | sudo -u git -H /usr/lib/gitlab-shell/bin/install |
| 76 | 73 | |
| 77 | 74 | %files | ... | ... |