From 0598f2959678e56185441053ca627ce261cea6af Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Wed, 30 Oct 2024 22:21:23 +0100 Subject: [PATCH] Disable Ubuntu Pro Aps --- scripts/ubuntu-disable-ads.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/ubuntu-disable-ads.sh diff --git a/scripts/ubuntu-disable-ads.sh b/scripts/ubuntu-disable-ads.sh new file mode 100755 index 0000000..edb790e --- /dev/null +++ b/scripts/ubuntu-disable-ads.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -uo pipefail + +# Comment out all URLs in this apt source +sudo sed -i'' -e 's/^\(\s\+\)\([^#]\)/\1# \2/' /etc/apt/apt.conf.d/20apt-esm-hook.conf