From: Tom Hughes Date: Tue, 26 Jun 2018 14:30:38 +0000 (+0100) Subject: Don't install nodejs-legacy on Ubuntu 18.04 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/5715ded771415bc4cc53702755b593fb23112a4f?hp=5ae823acdfd3efcf3c73a57a7bbec91486bed3c0 Don't install nodejs-legacy on Ubuntu 18.04 --- diff --git a/cookbooks/nodejs/recipes/default.rb b/cookbooks/nodejs/recipes/default.rb index 0e616ea19..87af7d656 100644 --- a/cookbooks/nodejs/recipes/default.rb +++ b/cookbooks/nodejs/recipes/default.rb @@ -17,8 +17,13 @@ # limitations under the License. # -package "nodejs" -package "nodejs-legacy" -package "npm" -package "g++" -package "make" +package %w[ + nodejs + npm + g++ + make +] + +if node[:lsb][:release].to_f < 18.04 + package "nodejs-legacy" +end