X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aaa33df87e98df2160e00fe96aa4bb85a2bdbc30..1bc290ecce828f4a28d096c383815d2aa9199253:/cookbooks/planet/templates/default/planet-update.erb diff --git a/cookbooks/planet/templates/default/planet-update.erb b/cookbooks/planet/templates/default/planet-update.erb index dda8e5dfa..4c00592b9 100644 --- a/cookbooks/planet/templates/default/planet-update.erb +++ b/cookbooks/planet/templates/default/planet-update.erb @@ -2,18 +2,18 @@ # DO NOT EDIT - This file is being maintained by Chef -exec > /var/log/planet-update.log 2>&1 +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."