From 3aa854b834580edbd3629061b1e68dad9b4be7e6 Mon Sep 17 00:00:00 2001 From: Thiago Ribeiro Date: Wed, 16 Sep 2015 16:08:00 -0300 Subject: [PATCH] Replace task plugin:enable. --- cookbooks/noosfero/recipes/default.rb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/cookbooks/noosfero/recipes/default.rb b/cookbooks/noosfero/recipes/default.rb index a0893b4..e48269d 100644 --- a/cookbooks/noosfero/recipes/default.rb +++ b/cookbooks/noosfero/recipes/default.rb @@ -57,14 +57,6 @@ execute 'noosfero:migrate' do user 'noosfero' end -execute 'plugins:activate' do - command "RAILS_ENV=production bundle exec rake noosfero:plugins:enable_all" - cwd '/usr/lib/noosfero' - user 'noosfero' - only_if 'bundle exec rake -P | grep enable_all' -end - - plugins_spb = [ 'software_communities', 'gov_user', @@ -80,6 +72,13 @@ plugins_spb.each do |plugin| end end +execute 'plugins:activate' do + command "RAILS_ENV=production bundle exec rake noosfero:plugins:enable_all" + cwd '/usr/lib/noosfero' + user 'noosfero' + only_if 'bundle exec rake -P | grep enable_all' +end + execute 'theme:enable' do command 'psql -h database -U noosfero --no-align --tuples-only -q -c "update environments set theme=\'noosfero-spb-theme\' where id=1;"' end -- libgit2 0.21.2