]> git.openstreetmap.org Git - chef.git/commitdiff
Use full path for runuser
authorTom Hughes <tom@compton.nu>
Fri, 21 Sep 2018 23:01:13 +0000 (00:01 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 21 Sep 2018 23:01:13 +0000 (00:01 +0100)
cookbooks/planet/templates/default/planet-update.erb

index dda8e5dfab1a95744b376d7dd691d0a590c73096..3f6f0a6db62930544311fceecebb8ea5982ebe4e 100644 (file)
@@ -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."