diff --git a/BashScripts/vm-tweaks.sh b/BashScripts/vm-tweaks.sh index 07ff20d..d844376 100644 --- a/BashScripts/vm-tweaks.sh +++ b/BashScripts/vm-tweaks.sh @@ -16,4 +16,8 @@ if [ ! -f "/etc/cloud/cloud-init.disabled" ]; then touch /etc/cloud/cloud-init.disabled fi +# Fix: apt-get upgrade auto restart services +# https://askubuntu.com/questions/1367139/apt-get-upgrade-auto-restart-services +sed -i -e "s/#\$nrconf{restart} = 'i';/\$nrconf{restart} = 'a';/g" /etc/needrestart/needrestart.conf + echo 'Installation complete. You should reboot to apply changes.' \ No newline at end of file