From 9449afc7745d12ad47fa2c2ebbddef836464a207 Mon Sep 17 00:00:00 2001 From: Lucas Kanashiro Date: Wed, 8 Apr 2015 16:13:22 -0300 Subject: [PATCH] Set noosfero-spb-theme in database --- cookbooks/noosfero/recipes/default.rb | 4 ++++ cookbooks/postgresql/recipes/noosfero.rb | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cookbooks/noosfero/recipes/default.rb b/cookbooks/noosfero/recipes/default.rb index ba8d0f6..a9e2a0e 100644 --- a/cookbooks/noosfero/recipes/default.rb +++ b/cookbooks/noosfero/recipes/default.rb @@ -42,6 +42,10 @@ execute 'plugins:enable' do command '/usr/lib/noosfero/script/noosfero-plugins enable ' + plugins.join(' ') 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 + template '/etc/noosfero/thin.yml' do owner 'root'; group 'root'; mode 0644 notifies :restart, 'service[noosfero]' diff --git a/cookbooks/postgresql/recipes/noosfero.rb b/cookbooks/postgresql/recipes/noosfero.rb index db99355..758c5d6 100644 --- a/cookbooks/postgresql/recipes/noosfero.rb +++ b/cookbooks/postgresql/recipes/noosfero.rb @@ -14,4 +14,3 @@ execute 'createdb:noosfero' do end end - -- libgit2 0.21.2