Commit 2d682a0108aabd1b987e2a7798ce1398a69ddd02

Authored by Sergio Oliveira
1 parent 5063224a

Noofesro tables must be created before grant

cookbooks/noosfero/recipes/default.rb
... ... @@ -149,6 +149,11 @@ execute 'create-admin-token-noosfero' do
149 149 cwd '/usr/lib/noosfero'
150 150 user 'noosfero'
151 151 end
  152 +
  153 +execute 'grant:noosfero:colab' do
  154 + command 'psql -h database -U noosfero -c "GRANT SELECT ON users TO colab"'
  155 +end
  156 +
152 157 ###############################################
153 158 # SELinux: permission to access static files noosfero
154 159 ################################################
... ...
cookbooks/postgresql/recipes/noosfero.rb
... ... @@ -13,8 +13,3 @@ execute 'createdb:noosfero' do
13 13 `sudo -u postgres -i psql --quiet --tuples-only -c "select count(1) from pg_database where datname = 'noosfero';"`.strip.to_i == 0
14 14 end
15 15 end
16   -
17   -execute 'grant:noosfero:colab' do
18   - command 'psql -c "GRANT SELECT ON users TO colab" noosfero'
19   - user 'postgres'
20   -end
... ...