From ea8d688f4ef40baed71255fe1fce88418c41f93e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 15 May 2016 23:45:28 +0300 Subject: [PATCH] use local secret_file for compiling assets the patched config.yml would use path from /etc which is unavailable at build time --- gitlab-ce.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitlab-ce.spec b/gitlab-ce.spec index 504d291..da1231b 100644 --- a/gitlab-ce.spec +++ b/gitlab-ce.spec @@ -17,7 +17,7 @@ Summary: A Web interface to create projects and repositories, manage access and do code reviews Name: gitlab-ce Version: 8.7.5 -Release: 0.21 +Release: 0.22 License: MIT Group: Applications/WWW # md5 deliberately omitted until this package is useful @@ -99,7 +99,10 @@ bundle install %{_smp_mflags} \ --deployment \ --without development test aws %{!?with_krb5:kerberos} +cp -p config/gitlab.yml{,.production} +sed -i -e '/secret_file:/d' config/gitlab.yml bundle exec rake RAILS_ENV=production assets:clean assets:precompile USE_DB=false +mv -f config/gitlab.yml{.production,} # avoid bogus ruby dep chmod a-x vendor/bundle/ruby/gems/unicorn-*/bin/unicorn* -- 2.44.0