projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
842246f
)
Use full path for runuser
author
Tom Hughes
<tom@compton.nu>
Fri, 21 Sep 2018 23:01:13 +0000
(
00:01
+0100)
committer
Tom Hughes
<tom@compton.nu>
Fri, 21 Sep 2018 23:01:13 +0000
(
00:01
+0100)
cookbooks/planet/templates/default/planet-update.erb
patch
|
blob
|
history
diff --git
a/cookbooks/planet/templates/default/planet-update.erb
b/cookbooks/planet/templates/default/planet-update.erb
index dda8e5dfab1a95744b376d7dd691d0a590c73096..3f6f0a6db62930544311fceecebb8ea5982ebe4e 100644
(file)
--- 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."