mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 10:09:56 +01:00
Compare commits
2 Commits
a635273e20
...
ef1ed79071
Author | SHA1 | Date | |
---|---|---|---|
|
ef1ed79071 | ||
|
0598f29596 |
8
scripts/ubuntu-disable-ads.sh
Executable file
8
scripts/ubuntu-disable-ads.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
|
||||
# Also here
|
||||
sudo sed -i'' -e '/^[^#]/ s/^/# /' /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-apps.sources
|
Loading…
Reference in New Issue
Block a user