Skip to content

Commit

Permalink
Update install command to not break on non arm systems (#405)
Browse files Browse the repository at this point in the history
Currently the command works for ARM, but on non arm systems it targets a file that does not exist.
  • Loading branch information
furan917 authored Dec 5, 2024
1 parent 8328970 commit 8bb6df8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions providers/agent_php.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ def newrelic_tar(dir, version, filename, extension="tar.gz")

def newrelic_install(current_working_directory = nil)
install_silently = new_resource.install_silently ? 'true' : 'false'

install_command = arm? ? './newrelic-install install' : 'newrelic-install install'

execute 'newrelic-install' do
cwd current_working_directory unless current_working_directory.nil?
command './newrelic-install install'
command install_command
if install_silently
environment(
'NR_INSTALL_SILENT' => '1'
Expand Down

0 comments on commit 8bb6df8

Please sign in to comment.