Add Ubuntu bash script to disable update manager
This commit is contained in:
parent
6915def40a
commit
c01f03d562
12
BashScripts/disable-update-manager.sh
Normal file
12
BashScripts/disable-update-manager.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# Install using: sudo su -c "bash <(wget -qO- /url/to/install-apache.sh)"
|
||||
|
||||
# Make sure script is ran as root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
exec sudo /bin/bash "$0" "$@"
|
||||
fi
|
||||
|
||||
apt-get remove update-manager
|
||||
|
||||
# Or comment out DPkg::Post-Invoke -line in 99update-notifier
|
||||
# nano /etc/apt/apt.conf.d/99update-notifier
|
||||
# #DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "; };
|
Loading…
x
Reference in New Issue
Block a user