Upgrade .NET and BTCPay

This commit is contained in:
2026-04-17 18:56:54 +04:00
parent abc3f7a0cd
commit 6bcdd3f4d6
2 changed files with 9 additions and 25 deletions

View File

@@ -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'