From 5c15439e5e036fcf3cf80ad762e4c5def22717da Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 22 Sep 2018 00:01:13 +0100 Subject: [PATCH] Use full path for runuser --- cookbooks/planet/templates/default/planet-update.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/planet/templates/default/planet-update.erb b/cookbooks/planet/templates/default/planet-update.erb index dda8e5dfa..3f6f0a6db 100644 --- a/cookbooks/planet/templates/default/planet-update.erb +++ b/cookbooks/planet/templates/default/planet-update.erb @@ -6,14 +6,14 @@ exec > /var/log/planet-update.log 2>&1 echo "Updating planet file..." -runuser -u planet -- /usr/local/bin/planet-update-file +/sbin/runuser -u planet -- /usr/local/bin/planet-update-file echo "Running jobs..." <% node[:planet][:current][:jobs].each_value do |job| -%> echo "Running '<%= job[:command] %>' as user '<%= job[:user] %>'..." -runuser -u "<%= job[:user] %>" -- "<%= job[:command] %>" +/sbin/runuser -u "<%= job[:user] %>" -- "<%= job[:command] %>" <% end -%> echo "Done." -- 2.39.5