]> git.openstreetmap.org Git - chef.git/commitdiff
Don't install nodejs-legacy on Ubuntu 18.04
authorTom Hughes <tom@compton.nu>
Tue, 26 Jun 2018 14:30:38 +0000 (15:30 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Jun 2018 14:30:38 +0000 (15:30 +0100)
cookbooks/nodejs/recipes/default.rb

index 0e616ea19db9c227b3dbd95e5810e7b3ab6825c8..87af7d65655b9f18a5325822047f61c154071843 100644 (file)
 # 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