[neon/neon/ubuntu-advantage-tools/Neon/release] debian: dpkg-divert the service away as well

Carlos De Maine null at kde.org
Mon Aug 11 14:19:07 BST 2025


Git commit 98edd0cde9a262415513426b453edd97c571982b by Carlos De Maine.
Committed on 11/08/2025 at 13:19.
Pushed by carlosdem into branch 'Neon/release'.

dpkg-divert the service away as well

M  +2    -1    debian/ubuntu-advantage-tools.postinst

https://invent.kde.org/neon/neon/ubuntu-advantage-tools/-/commit/98edd0cde9a262415513426b453edd97c571982b

diff --git a/debian/ubuntu-advantage-tools.postinst b/debian/ubuntu-advantage-tools.postinst
index 85ea610..021f5fe 100644
--- a/debian/ubuntu-advantage-tools.postinst
+++ b/debian/ubuntu-advantage-tools.postinst
@@ -3,10 +3,11 @@
 set -e
 
 # mask the systemd services to not spam the terminal
-
 systemctl mask apt-news.service
 systemctl mask esm-cache.service​
 
+# dpkg-divert the service away as well
+dpkg-divert --rename --divert /etc/apt/apt.conf.d/20apt-esm-hook.conf.disabled --add /etc/apt/apt.conf.d/20apt-esm-hook.conf
 #DEBHELPER#
 
 exit 0


More information about the Neon-commits mailing list