From 068b275bf0361a510ae35a99b640c5db804ff6aa Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 3 Jun 2024 10:31:21 -0400 Subject: [PATCH] user/gitlab-foss: enable build --- user/gitlab-foss/APKBUILD | 9 +++------ user/gitlab-foss/gitlab.rails.initd | 5 +++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/user/gitlab-foss/APKBUILD b/user/gitlab-foss/APKBUILD index 4b95adc..4dc5509 100644 --- a/user/gitlab-foss/APKBUILD +++ b/user/gitlab-foss/APKBUILD @@ -8,7 +8,7 @@ _gittag=v$pkgver pkgrel=0 pkgdesc="A version control for your server" url="https://gitlab.com/gitlab-org/gitlab-foss" -#arch="x86_64 aarch64" +arch="x86_64 aarch64" license="MIT" # ruby-irb is needed only for Rails console (gitlab-rails console) depends=" @@ -239,10 +239,7 @@ package() { "$datadir"/packages \ "$datadir"/pages \ "$datadir"/terraform_state \ - "$datadir"/uploads \ - "$pkgdir"/var/tmp/gitlab \ - "$pkgdir"/var/tmp/gitlab/downloads \ - "$pkgdir"/var/tmp/gitlab/backups + "$datadir"/uploads install -d -m0750 -o git -g www-data \ "$datadir"/pages @@ -386,7 +383,7 @@ d17ff841977d157965337774ac8ebed409e058bb1617d3fadeb8330d46efe32a091483ba30955c88 daa496f3d9146f9dbddff62477bf49d5c7bd2f2a4cdbadc70ee51c8230f3ef01dc950ef157154b31c7e7bef0beecc5cbac50fbac65a79d6d9099b27bcba8b2ab database-config.patch 55b0667d3969113ffd6860652ee8bdb9a534c25f413f33b2739e922c886988e7cea72c1c00c7eecf29fcff3682b1324156365605ffc6aae45d1e0ccddf96288b gitlab.initd 1f451b67a5d5e58650b0fe862a2b65cfb8bff5502b37d94ae90619c1ff9affbecf24428303a2849bebce5f94bef37078f0e5710e344bbab616134e910938384a gitlab.mailroom.initd -b6a6d9ba20557e61efa24f2d5a489873fefbb981f7d4465794a857b2971263c08ec29cc001c372522cdc0d48245e59751307c9f44f6ef4d87bf2e3ec5c23fb1c gitlab.rails.initd +d8cdeb54c46f8204936bf5750833649e4586d3dd1942eed45955ed1661ae5f5080f59184fcb59a8f73c1405faccbf02b3db3d2c12fc2a4a81424cd35ce390768 gitlab.rails.initd cb4ec100f0ea7ffcbb37aead8423e636629e2f4848b2974a7b2468e96cb1081ca732ac336417b08dd943afb961df888c73af1334dcbe054dfd361e74f492fd86 gitlab.sidekiq.initd 85c4e257a030832bd70ad1e257ae7cb568b31e01201fc845abac02d00f02492ca694be1fa2bf743dd8c8623e6a79d36adee3f4de02040134c11158a6001c064b gitlab.workhorse.initd 4dc00b16462f30591297fcb535fc364185d3ed76e9956597f0423a8dfd8a9a351f6ac29d9f0c73052c11324fba4768eb89a21c6bef4da99f15baaea8c9ab8407 gitlab.confd diff --git a/user/gitlab-foss/gitlab.rails.initd b/user/gitlab-foss/gitlab.rails.initd index 051cbcd..4c824d9 100644 --- a/user/gitlab-foss/gitlab.rails.initd +++ b/user/gitlab-foss/gitlab.rails.initd @@ -77,6 +77,11 @@ start_pre() { if [ -n "$downloads_path" ]; then checkpath -d -m 700 -o $command_user -q "$downloads_path" fi + + checkpath --directory --owner $command_user --mode 0775 \ + /var/tmp/gitlab/downloads \ + /var/tmp/gitlab/backups + } reload() {