Skip to content

Commit

Permalink
fixes 3209 - exit code only zero by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Oct 7, 2013
1 parent d3eec65 commit a287dc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/foreman-installer
Expand Up @@ -45,12 +45,14 @@ if [0,2].include? @result.exit_code
if ( module_enabled?('puppet') && ( get_param('puppet','server') != false ) )
say " * <%= color('Puppetmaster', :info) %> is running at <%= color('port #{get_param('puppet','server_port')}', :info) %>"
end
exit_code = 0
else
say " <%= color('Something went wrong!', :bad) %> Check the log for ERROR-level output"
exit_code = @result.exit_code
end

# This is always useful, success or fail
log = @result.config.app[:log_dir] + '/' + @result.config.app[:log_name]
say " The full log is at <%= color('#{log}', :info) %>"

exit @result.exit_code
exit exit_code

0 comments on commit a287dc9

Please sign in to comment.