From 9ab870763e2e7889f442696e1f05a9e44f08811d Mon Sep 17 00:00:00 2001 From: Yo Takezawa Date: Fri, 9 Jan 2015 11:33:48 +0900 Subject: [PATCH] Fix redirect order to output stderr on output_log correctly --- providers/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/model.rb b/providers/model.rb index d55e38b..d741f73 100644 --- a/providers/model.rb +++ b/providers/model.rb @@ -6,7 +6,7 @@ def whyrun_supported? action :create do cron_options = new_resource.cron_options || {} cron_output_redirect = if cron_options.key?(:output_log) - "2>&1 >> #{cron_options[:output_log]}" + ">> #{cron_options[:output_log]} 2>&1" else "> /dev/null" end