[packages/gitlab-ce] use local secret_file for compiling assets

glen glen at pld-linux.org
Sun May 15 22:59:17 CEST 2016


commit ea8d688f4ef40baed71255fe1fce88418c41f93e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 15 23:45:28 2016 +0300

    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*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/ea8d688f4ef40baed71255fe1fce88418c41f93e



More information about the pld-cvs-commit mailing list