mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-10 07:05:30 +02:00
16 lines
312 B
Ruby
16 lines
312 B
Ruby
#
|
|
# Cookbook:: metasploitable
|
|
# Recipe:: nodejs
|
|
#
|
|
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
|
#
|
|
#
|
|
execute 'add nodejs 4 repository' do
|
|
command 'curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -'
|
|
not_if { ::File.exist?('/usr/bin/node') }
|
|
end
|
|
|
|
package 'nodejs' do
|
|
options '--force-yes'
|
|
end
|