Disable `Ubuntu Pro` announcement.
This commit is contained in:
parent
450426b12a
commit
1998a11c29
|
@ -70,6 +70,9 @@ include_recipe './starship.rb'
|
|||
# Install cloudflared command:
|
||||
include_recipe './cloudflared.rb'
|
||||
|
||||
# Disable Ubuntu Pro
|
||||
include_recipe './ubuntupro.rb'
|
||||
|
||||
# recipes for Ubuntu 20.04 and later
|
||||
case node['platform_version']
|
||||
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