From 3a625f50afa46bad7414bf197906208a5379edd3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Apr 2015 08:16:44 +0100 Subject: [PATCH] Ignore passenger-config output --- cookbooks/taginfo/templates/default/update-taginfo.erb | 2 +- cookbooks/web/templates/default/logrotate.web.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/taginfo/templates/default/update-taginfo.erb b/cookbooks/taginfo/templates/default/update-taginfo.erb index fd023ff20..4d09a6580 100644 --- a/cookbooks/taginfo/templates/default/update-taginfo.erb +++ b/cookbooks/taginfo/templates/default/update-taginfo.erb @@ -19,6 +19,6 @@ mv $ROOT/data/taginfo-* $ROOT/data/old mv $ROOT/sources/taginfo-*.db $ROOT/sources/*/taginfo-*.db $ROOT/data mv $ROOT/sources/download/* $ROOT/download -passenger-config restart-app $ROOT/taginfo/web +passenger-config restart-app $ROOT/taginfo/web > /dev/null find $ROOT/sources/log -mtime +28 -delete diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index a38a3e379..6c8b79646 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -11,7 +11,7 @@ sharedscripts postrotate <% if File.directory?("#{node[:web][:base_directory]}/rails") -%> - /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails + /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> /usr/bin/service gpx-import rotated -- 2.39.5