3 # DO NOT EDIT - This file is being maintained by Chef
5 exec > /var/log/planet-update.log 2>&1
7 echo "Updating planet file..."
9 runuser -u planet -- /usr/local/bin/planet-update-file
11 echo "Running jobs..."
12 <% node[:planet][:current][:jobs].each_value do |job| -%>
14 echo "Running '<%= job[:command] %>' as user '<%= job[:user] %>'..."
16 runuser -u "<%= job[:user] %>" -- "<%= job[:command] %>"