X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5715ded771415bc4cc53702755b593fb23112a4f..c3be356ba81afff0a666355e018531de69e0a5fb:/cookbooks/nodejs/recipes/default.rb diff --git a/cookbooks/nodejs/recipes/default.rb b/cookbooks/nodejs/recipes/default.rb index 87af7d656..5f8ca526b 100644 --- a/cookbooks/nodejs/recipes/default.rb +++ b/cookbooks/nodejs/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: nodejs +# Cookbook:: nodejs # Recipe:: default # -# Copyright 2013, OpenStreetMap Foundation +# Copyright:: 2013, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,6 +24,9 @@ package %w[ make ] -if node[:lsb][:release].to_f < 18.04 - package "nodejs-legacy" +template "/usr/local/bin/yarn" do + source "yarn.erb" + owner "root" + group "root" + mode "755" end