[DRE-maint] Bug#814506: gitlab: please consider providing a wrapper in /usr/bin for more convenient execution of gitlab rake

Johannes Schauer josch at debian.org
Fri Feb 12 10:31:52 UTC 2016


Package: gitlab
Version: 8.4.3+dfsg-3
Severity: wishlist

Hi,

currently, running commands like:

	$ rake gitlab:check RAILS_ENV=production

requires:

 - the current user to be "gitlab"
 - the current directory to be /usr/share/gitlab
 - the environment from /etc/gitlab/gitlab-debian.conf to be loaded

This means that in practice I repeatedly see myself doing:

# su gitlab
$ cd
$ export $(cat /etc/gitlab/gitlab-debian.conf | xargs)
$ rake [...]

It would be great if the commands switching the user, changing the
working directory and setting the environment could be incorporated into
a wrapper shell script, so that one would just need to do:

# sudo gitlab-run rake [...]

Thanks!

cheers, josch



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