Commit f98635fd4958361b152aa0152605a6a266368684

Authored by Thiago Ribeiro
1 parent f2dd6cab

Add noosfero user and noosfero cwd in command.

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
cookbooks/noosfero/recipes/default.rb
... ... @@ -47,7 +47,9 @@ execute 'theme:enable' do
47 47 end
48 48  
49 49 execute 'translations:enable' do
50   - command 'rake noosfero:translations:compile --quiet'
  50 + cwd '/usr/lib/noosfero'
  51 + user 'noosfero'
  52 + command 'RAILS_ENV=production bundle exec rake noosfero:translations:compile --quiet'
51 53 end
52 54  
53 55 template '/etc/noosfero/thin.yml' do
... ...