Support fo Ubuntu2404 #26
|
@ -70,6 +70,9 @@ include_recipe './starship.rb'
|
||||||
# Install cloudflared command:
|
# Install cloudflared command:
|
||||||
include_recipe './cloudflared.rb'
|
include_recipe './cloudflared.rb'
|
||||||
|
|
||||||
|
# Disable Ubuntu Pro
|
||||||
|
include_recipe './ubuntupro.rb'
|
||||||
|
|
||||||
# recipes for Ubuntu 20.04 and later
|
# recipes for Ubuntu 20.04 and later
|
||||||
case node['platform_version']
|
case node['platform_version']
|
||||||
when "20.04", "22.04", "24.04"
|
when "20.04", "22.04", "24.04"
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
case node['platform_version']
|
||||||
|
when "24.04"
|
||||||
|
directory "/etc/apt/apt.conf.d/bk/"
|
||||||
|
|
||||||
|
%w( 20apt-esm-hook.conf ).each do |conf|
|
||||||
|
execute "mv /etc/apt/apt.conf.d/#{conf} /etc/apt/apt.conf.d/bk/#{conf}"
|
||||||
|
execute "touch /etc/apt/apt.conf.d/#{conf}"
|
||||||
|
end
|
||||||
|
|
||||||
|
execute 'pro config set apt_news=false'
|
||||||
|
end
|
Loading…
Reference in New Issue