Set debian version as env variable
This commit is contained in:
parent
7bc018b2b8
commit
7fb73ff66d
2 changed files with 6 additions and 0 deletions
3
debian/conf/gitlab-debian.conf.example
vendored
3
debian/conf/gitlab-debian.conf.example
vendored
|
@ -2,6 +2,9 @@
|
||||||
# Variables with all caps are passed to gitlab app
|
# Variables with all caps are passed to gitlab app
|
||||||
RAILS_ENV=production
|
RAILS_ENV=production
|
||||||
DB=postgres
|
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_app_root=/usr/share/gitlab
|
||||||
gitlab_data_dir=/var/lib/gitlab
|
gitlab_data_dir=/var/lib/gitlab
|
||||||
gitlab_pid_path=/run/gitlab
|
gitlab_pid_path=/run/gitlab
|
||||||
|
|
3
debian/rules
vendored
3
debian/rules
vendored
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with=systemd
|
dh $@ --with=systemd
|
||||||
|
|
||||||
|
@ -13,6 +15,7 @@ override_dh_install:
|
||||||
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
|
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
|
||||||
debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale.static
|
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
|
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:
|
override_dh_installinit:
|
||||||
dh_installinit --no-start -p gitlab --name=gitlab-sidekiq
|
dh_installinit --no-start -p gitlab --name=gitlab-sidekiq
|
||||||
|
|
Loading…
Reference in a new issue