Commit 96fad7d5963a0f351d1cd747688a4ec06b8a2bc7
1 parent
2c93b703
Exists in
master
and in
54 other branches
Restart noosfero service when packages are updated
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Rodrigo Souto <rodrigo@colivre.coop.br> Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
... | ... | @@ -7,10 +7,12 @@ end |
7 | 7 | # FIXME should not be needed. noosfero should depend on the right version |
8 | 8 | package 'noosfero-deps' do |
9 | 9 | action :upgrade |
10 | + notifies :restart, 'service[noosfero]' | |
10 | 11 | end |
11 | 12 | |
12 | 13 | package 'noosfero' do |
13 | 14 | action :upgrade |
15 | + notifies :restart, 'service[noosfero]' | |
14 | 16 | end |
15 | 17 | |
16 | 18 | template '/etc/noosfero/database.yml' do |
... | ... | @@ -31,6 +33,7 @@ end |
31 | 33 | |
32 | 34 | package 'noosfero-spb' do |
33 | 35 | action :upgrade |
36 | + notifies :restart, 'service[noosfero]' | |
34 | 37 | end |
35 | 38 | |
36 | 39 | plugins = [ | ... | ... |