Commit 80c80dfe68c5c52186806c5a4adfc8622d281155

Authored by Lucas Kanashiro
1 parent 9b521d8c

Noosfero: Create software licenses

Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
cookbooks/noosfero/recipes/default.rb
... ... @@ -46,6 +46,11 @@ execute &#39;theme:enable&#39; do
46 46 command 'psql -h database -U noosfero --no-align --tuples-only -q -c "update environments set theme=\'noosfero-spb-theme\' where id=1;"'
47 47 end
48 48  
  49 +execute 'software:create_licenses' do
  50 + cwd '/usr/lib/noosfero'
  51 + command 'sudo -u noosfero bundle exec rake software:create_licenses RAILS_ENV=production'
  52 +end
  53 +
49 54 template '/etc/noosfero/thin.yml' do
50 55 owner 'root'; group 'root'; mode 0644
51 56 notifies :restart, 'service[noosfero]'
... ...