Project

General

Profile

« Previous | Next » 

Revision 688e146c

Added by Bernhard Suttner 27 days ago

Fixes #37397 - use puppet-agent.sh to set $PATH

View differences:

app/views/templates/script/puppet_run_once.erb
required: false
feature: puppet_run_host
%>
<% if @host.operatingsystem.family == 'Debian' -%>
export PATH=/opt/puppetlabs/bin:$PATH
<% end -%>
if [ -f /etc/profile.d/puppet-agent.sh ]; then
. /etc/profile.d/puppet-agent.sh
fi
puppet agent --onetime --no-usecacheonfailure --no-daemonize <%= input("puppet_options") %>

Also available in: Unified diff