From 56e4e7723365fbd2aac05cd96aa61ca74a703df2 Mon Sep 17 00:00:00 2001 From: dheerajd-msys Date: Thu, 19 Sep 2019 15:15:10 +0530 Subject: [PATCH] set path in cron Signed-off-by: dheerajd-msys --- lib/chef/azure/templates/chef-client-cron-create.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/azure/templates/chef-client-cron-create.erb b/lib/chef/azure/templates/chef-client-cron-create.erb index 3da23c2f..6fbec274 100644 --- a/lib/chef/azure/templates/chef-client-cron-create.erb +++ b/lib/chef/azure/templates/chef-client-cron-create.erb @@ -1,5 +1,5 @@ cron '<%= name %>' do minute '<%= "*/#{interval}" %>' - command '/bin/sleep <%= sleep_time %>; chef-client -c <%= bootstrap_directory %>/client.rb -L <%= log_location %>/chef-client.log --pid <%= chef_pid_file %> --once' + command '/bin/sleep <%= sleep_time %>; export PATH=$PATH:/usr/sbin; chef-client -c <%= bootstrap_directory %>/client.rb -L <%= log_location %>/chef-client.log --pid <%= chef_pid_file %> --once' action :create end