[DRE-maint] Bug#854617: gitlab: Package installation/upgrade fails when gitlab_user is changed

Benjamin Drung benjamin.drung at profitbricks.com
Wed Feb 8 17:35:45 UTC 2017


Package: gitlab
Version: 8.13.11+dfsg-2
Severity: important
Tags: patch

Hi,

I want to use the gitlab package as replacement for our gitlab source
installation, which uses the user 'git' (instead of 'gitlab'). Thus I
changed gitlab_user in /etc/gitlab/gitlab-debian.conf for 'gitlab' to
'git'. I had to adjust the tmpfiles configuration:

    sed 's/gitlab www-data/git www-data/' /usr/lib/tmpfiles.d/gitlab.conf > /etc/tmpfiles.d/gitlab.conf

and the service files:

    for service in mailroom unicorn sidekiq workhorse; do
        path=/etc/systemd/system/gitlab-${service}.service.d
        mkdir -p $path
        printf "[Service]\nUser=git\n" > $path/override.conf
    done

gitlab is running with these changes, but package upgrades will fail,
because grantpriv.sh hard-codes the gitlab user. Please apply the
attached patches for it. Thanks.

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: benjamin.drung at profitbricks.com
URL:  http://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Honor-gitlab_user-setting-in-grantpriv.sh.patch
Type: text/x-diff
Size: 2075 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170208/4393c750/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-grantpriv.sh-Use-set-e-to-make-code-more-readable.patch
Type: text/x-diff
Size: 1826 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170208/4393c750/attachment-0003.patch>


More information about the Pkg-ruby-extras-maintainers mailing list