Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix default path
  • Loading branch information
Adrian Hornsby committed Sep 17, 2013
commit 87a37769d06db03cd54d64e2f1e15ea4b45b920f
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
default['nodejs']['src_url'] = "http://nodejs.org/dist"
default['nodejs']['make_threads'] = node['cpu'] ? node['cpu']['total'].to_i : 2
default['nodejs']['check_sha'] = true
default['nodejs']['install_script_path'] = "/usr/local"
default['nodejs']['install_script_path'] = "/usr/local/bin"

# Set this to true to install the legacy packages (0.8.x) from ubuntu/debian repositories; default is false (using the latest stable 0.10.x)
default['nodejs']['legacy_packages'] = false
2 changes: 1 addition & 1 deletion recipes/install_from_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
bash "compile node.js (on #{node['nodejs']['make_threads']} cpu)" do
# OSX doesn't have the attribute so arbitrarily default 2
cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
path "#{node['nodejs']['install_script_path']}/bin"
path "#{node['nodejs']['install_script_path']}"
code <<-EOH
./configure --prefix=#{node['nodejs']['dir']} && \
make -j #{node['nodejs']['make_threads']}
Expand Down