Upgrade .NET and BTCPay
This commit is contained in:
@@ -5,29 +5,16 @@
|
||||
|
||||
build_essential
|
||||
|
||||
apt_repository 'universe' do
|
||||
uri 'http://archive.ubuntu.com/ubuntu/'
|
||||
distribution 'focal'
|
||||
components ['universe']
|
||||
remote_file "/opt/dotnet-install.sh" do
|
||||
source "https://dot.net/v1/dotnet-install.sh"
|
||||
mode "0755"
|
||||
end
|
||||
|
||||
apt_package 'apt-transport-https'
|
||||
|
||||
remote_file '/opt/packages-microsoft-prod.deb' do
|
||||
source node['dotnet']['ms_packages_src_url']
|
||||
checksum node['dotnet']['ms_packages_src_checksum']
|
||||
action :create_if_missing
|
||||
execute "install_dotnet_10" do
|
||||
command "/opt/dotnet-install.sh -c 10.0 --install-dir /usr/share/dotnet"
|
||||
not_if '/usr/share/dotnet/dotnet --version | grep -q "^10\."'
|
||||
end
|
||||
|
||||
dpkg_package 'packages-microsoft-prod' do
|
||||
source '/opt/packages-microsoft-prod.deb'
|
||||
action :install
|
||||
notifies :run, 'execute[apt_update]'
|
||||
link "/usr/bin/dotnet" do
|
||||
to "/usr/share/dotnet/dotnet"
|
||||
end
|
||||
|
||||
execute 'apt_update' do
|
||||
command 'apt update'
|
||||
action :nothing
|
||||
end
|
||||
|
||||
apt_package 'dotnet-sdk-8.0'
|
||||
|
||||
Reference in New Issue
Block a user