Revision 7e46a7bc
Added by Karli Sjoberg about 8 years ago
app/services/foreman/provision/ssh.rb | ||
---|---|---|
def command
|
||
# Use the users home to store the provision script since we can't reliably
|
||
# tell if other locations are writeable or executable by the user.
|
||
"#{command_prefix} bash -c '(chmod 0701 ./#{remote_script} && #{command_prefix} ./#{remote_script}) 2>&1 | tee #{remote_script}.log; exit ${PIPESTATUS[0]}'"
|
||
"#{command_prefix} sh -c '(chmod 0701 ./#{remote_script} && #{command_prefix} ./#{remote_script}) 2>&1 | tee #{remote_script}.log; exit ${PIPESTATUS[0]}'"
|
||
end
|
||
|
||
def defaults
|
Also available in: Unified diff
fixes #14131 Changed bash to sh