Browse files

Install node.js from source on all platform families except Debian.

This is a workaround for issue mdxp/nodejs-cookbook#19 in the upstream 
`nodejs` cookbook. Basically installing node.js from RPM is no longer 
possible on Fedora/RHEL/CentOS.
  • Loading branch information...
1 parent 2d4d2b9 commit 427bf69e482d17b6d0e62d5568931321ec18e616 @schisamo schisamo committed Feb 18, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 recipes/default.rb
View
8 recipes/default.rb
@@ -18,9 +18,15 @@
#
include_recipe "git"
-include_recipe "nodejs::install_from_package"
include_recipe "runit"
+case node['platform_family']
+when "debian"
+ include_recipe "nodejs::install_from_package"
+else
+ include_recipe "nodejs::install_from_source"
+end
+
user node['hubot']['user'] do
comment "Hubot User"
home node['hubot']['install_dir']

0 comments on commit 427bf69

Please sign in to comment.