Commit 3aa854b834580edbd3629061b1e68dad9b4be7e6
1 parent
064023e4
Exists in
master
and in
56 other branches
Replace task plugin:enable.
Replace task for active spb plugins. Signed-off-by: Thiago Ribeiro <thiagitosouza@gmail.com>
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
| ... | ... | @@ -57,14 +57,6 @@ execute 'noosfero:migrate' do |
| 57 | 57 | user 'noosfero' |
| 58 | 58 | end |
| 59 | 59 | |
| 60 | -execute 'plugins:activate' do | |
| 61 | - command "RAILS_ENV=production bundle exec rake noosfero:plugins:enable_all" | |
| 62 | - cwd '/usr/lib/noosfero' | |
| 63 | - user 'noosfero' | |
| 64 | - only_if 'bundle exec rake -P | grep enable_all' | |
| 65 | -end | |
| 66 | - | |
| 67 | - | |
| 68 | 60 | plugins_spb = [ |
| 69 | 61 | 'software_communities', |
| 70 | 62 | 'gov_user', |
| ... | ... | @@ -80,6 +72,13 @@ plugins_spb.each do |plugin| |
| 80 | 72 | end |
| 81 | 73 | end |
| 82 | 74 | |
| 75 | +execute 'plugins:activate' do | |
| 76 | + command "RAILS_ENV=production bundle exec rake noosfero:plugins:enable_all" | |
| 77 | + cwd '/usr/lib/noosfero' | |
| 78 | + user 'noosfero' | |
| 79 | + only_if 'bundle exec rake -P | grep enable_all' | |
| 80 | +end | |
| 81 | + | |
| 83 | 82 | execute 'theme:enable' do |
| 84 | 83 | command 'psql -h database -U noosfero --no-align --tuples-only -q -c "update environments set theme=\'noosfero-spb-theme\' where id=1;"' |
| 85 | 84 | end | ... | ... |