Add Ubuntu bash script to disable update manager

This commit is contained in:
Johan 2024-08-29 10:04:46 +02:00
parent 6915def40a
commit c01f03d562

View 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 "; };