[packages/gitlab-ce] package skip-auto-migrations as ghost; add verify to config files
glen
glen at pld-linux.org
Fri May 27 07:41:10 CEST 2016
commit c4379f311e072a66e01abaa7bf41021e13b0f11c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri May 27 00:40:11 2016 +0300
package skip-auto-migrations as ghost; add verify to config files
gitlab-ce.spec | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gitlab-ce.spec b/gitlab-ce.spec
index da9f7b7..3d3de9a 100644
--- a/gitlab-ce.spec
+++ b/gitlab-ce.spec
@@ -182,6 +182,7 @@ move_config() {
for f in gitlab.yml unicorn.rb database.yml; do
move_config %{homedir}/config/$f %{_sysconfdir}/gitlab/$f
done
+touch $RPM_BUILD_ROOT%{_sysconfdir}/gitlab/skip-auto-migrations
install -d $RPM_BUILD_ROOT{%{_sbindir},%{systemdunitdir},%{systemdtmpfilesdir}} \
$RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,httpd/webapps.d}
@@ -226,7 +227,7 @@ if [ $1 -eq 1 ]; then
systemctl -q start gitlab-unicorn
systemctl -q start gitlab-sidekiq
systemctl -q start gitlab.target
- echo "Create and configure database in /etc/gitlab/database.yml"
+ echo "Create and configure database in %{_sysconfdir}/gitlab/database.yml"
echo "Then run 'sudo -u gitlab bundle exec rake gitlab:setup RAILS_ENV=production'"
echo
else
@@ -257,10 +258,11 @@ fi
%files
%defattr(644,root,root,755)
%doc LICENSE
-%config(noreplace) %{_sysconfdir}/gitlab/database.yml
-%config(noreplace) %{_sysconfdir}/gitlab/gitlab.yml
-%config(noreplace) %{_sysconfdir}/gitlab/unicorn.rb
-%config(noreplace) %{_sysconfdir}/httpd/webapps.d/gitlab.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gitlab/database.yml
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gitlab/gitlab.yml
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gitlab/unicorn.rb
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd/webapps.d/gitlab.conf
+%ghost %{_sysconfdir}/gitlab/skip-auto-migrations
/etc/logrotate.d/gitlab.logrotate
%attr(754,root,root) /etc/rc.d/init.d/gitlab-sidekiq
%attr(754,root,root) /etc/rc.d/init.d/gitlab-unicorn
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/d5651fee86fa06b0dc7d7bcbf6c2a4fa5565659e
More information about the pld-cvs-commit
mailing list