From b950c1532294e17c9770e1441168bca268bd8313 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 9 Jan 2016 11:42:41 +0000 Subject: [PATCH] Don't use dots in cron.daily file names --- cookbooks/dev/recipes/default.rb | 2 +- cookbooks/web/definitions/rails_port.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index a57432411..19539c9dc 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -206,7 +206,7 @@ if node[:postgresql][:clusters][:"9.3/main"] recursive true end - file "/etc/cron.daily/rails-#{site_name}" do + file "/etc/cron.daily/rails-#{site_name.tr('.', '-')}" do action :delete end diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index 83d0a1a36..f0dd581d8 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -283,7 +283,7 @@ define :rails_port, :action => [:create, :enable] do only_if { File.exist?("/usr/bin/passenger-config") } end - template "/etc/cron.daily/rails-#{name}" do + template "/etc/cron.daily/rails-#{name.tr('.', '-')}" do cookbook "web" source "rails.cron.erb" owner "root" -- 2.39.5