Commit 34041b5f16fa5da3781470aa80e5d8a0c1cff890
1 parent
f2c28e31
Exists in
master
and in
79 other branches
Gitlab: add symbolic link to public/uploads and add avatar patch
Signed-off-by: Athos Ribeiro <athoscribeiro@gmail.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
specs/gitlab/gitlab.spec
... | ... | @@ -6,6 +6,7 @@ Group: Development/Tools |
6 | 6 | License: Expat |
7 | 7 | URL: https://beta.softwarepublico.gov.br/gitlab/softwarepublico/gitlab |
8 | 8 | Source0: %{name}-%{version}.tar.gz |
9 | +Patch0: avatar_url.patch | |
9 | 10 | BuildArch: noarch |
10 | 11 | BuildRequires: gitlab-deps |
11 | 12 | Requires: gitlab-deps, gitlab-shell, git |
... | ... | @@ -15,7 +16,7 @@ GitLab |
15 | 16 | |
16 | 17 | %prep |
17 | 18 | %setup -q |
18 | -#%patch0 -p 1 | |
19 | +%patch0 -p 1 | |
19 | 20 | |
20 | 21 | %build |
21 | 22 | cat > config/gitlab.yml <<EOF |
... | ... | @@ -97,6 +98,7 @@ ln -s /var/lib/gitlab/tmp %{buildroot}/usr/lib/gitlab/tmp |
97 | 98 | ln -s /var/lib/gitlab/.gitlab_shell_secret %{buildroot}/usr/lib/gitlab/.gitlab_shell_secret |
98 | 99 | ln -s /var/lib/gitlab/.secret %{buildroot}/usr/lib/gitlab/.secret |
99 | 100 | ln -s /var/lib/gitlab-assets %{buildroot}/usr/lib/gitlab/public/assets |
101 | +ln -s /var/lib/gitlab-uploads %{buildroot}/usr/lib/gitlab/public/uploads | |
100 | 102 | |
101 | 103 | %post |
102 | 104 | groupadd git || true |
... | ... | @@ -114,6 +116,7 @@ mkdir -p /var/lib/gitlab/backups |
114 | 116 | mkdir -p /var/lib/gitlab/repositories |
115 | 117 | mkdir -p /var/lib/gitlab/satellites |
116 | 118 | mkdir -p /var/lib/gitlab/tmp |
119 | +mkdir -p /var/lib/gitlab-uploads | |
117 | 120 | touch /var/lib/gitlab/.gitconfig |
118 | 121 | ln -s /var/lib/gitlab/.gitconfig /usr/lib/gitlab/.gitconfig |
119 | 122 | chown -R git:git /var/lib/gitlab | ... | ... |