Set debian version as env variable

This commit is contained in:
Balasankar C 2019-01-05 16:20:14 +05:30
parent 7bc018b2b8
commit 7fb73ff66d
No known key found for this signature in database
GPG key ID: B77D2E2E23735427
2 changed files with 6 additions and 0 deletions

View file

@ -2,6 +2,9 @@
# Variables with all caps are passed to gitlab app
RAILS_ENV=production
DB=postgres
# This will be replaced by debian/rules at the time of build.
GITLAB_DEBIAN_VERSION="__NEW_VERSION__"
SALSA_TAG_URL="https://salsa.debian.org/ruby-team/gitlab/tags/debian/"
gitlab_app_root=/usr/share/gitlab
gitlab_data_dir=/var/lib/gitlab
gitlab_pid_path=/run/gitlab

3
debian/rules vendored
View file

@ -1,5 +1,7 @@
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with=systemd
@ -13,6 +15,7 @@ override_dh_install:
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale.static
mv debian/gitlab/var/lib/gitlab/db/schema.rb debian/gitlab/var/lib/gitlab/db/schema.rb.template
sed -i 's/__NEW_VERSION__/${DEB_VERSION}/g' debian/gitlab/usr/lib/gitlab/templates/gitlab-debian.conf.example
override_dh_installinit:
dh_installinit --no-start -p gitlab --name=gitlab-sidekiq