diff --git a/BashScripts/disable-update-manager.sh b/BashScripts/disable-update-manager.sh new file mode 100644 index 0000000..fbb4de6 --- /dev/null +++ b/BashScripts/disable-update-manager.sh @@ -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 "; };