From 0c36fc95dd9a270e8b8234783305c56372824b74 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 17 Sep 2015 11:19:21 -0300 Subject: [PATCH] noosfero: *temporarily* disable spb plugins before migrating --- cookbooks/noosfero/recipes/default.rb | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cookbooks/noosfero/recipes/default.rb b/cookbooks/noosfero/recipes/default.rb index 9b4ca83..f5c8241 100644 --- a/cookbooks/noosfero/recipes/default.rb +++ b/cookbooks/noosfero/recipes/default.rb @@ -51,17 +51,24 @@ execute 'plugins:enable' do command '/usr/lib/noosfero/script/noosfero-plugins enable ' + plugins.join(' ') end +plugins_spb = [ + 'software_communities', + 'gov_user', + 'spb_migrations', +] + +# HACK disable plugins_spb before migrating +# FIXME fix the plugins to not depend on other pugins +execute 'noosfero:plugins_spb:disable' do + command '/usr/lib/noosfero/script/noosfero-plugins disable ' + plugins_spb.join(' ') +end + execute 'noosfero:migrate' do command 'RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate' cwd '/usr/lib/noosfero' user 'noosfero' end -plugins_spb = [ - 'software_communities', - 'gov_user', - 'spb_migrations', -] #FIXME: We did it, because we have to enable each plugin and migrate it separately. plugins_spb.each do |plugin| -- libgit2 0.21.2