I'd like to add some logic to unattended upgrades, but am unsure how to do so. Here's what I'd like to do: If there are security updates, run command exampleCommand1, then proceed with updates. If no reboot is required after updates are installed, run command exampleCommand2 followed by exampleCommand3. If reboot is required, run command exampleCommand4, then reboot.


Reboot is required only after if you want to update kernel by running the command "apt-get dist-upgrade" other upgrades do not require reboot of server. This "apt-get dist-upgrade" updates your system only if there is new kernel available.

  • Not very helpful response. – A.B. Mar 24 '15 at 8:26
  • agreed, this response wasn't helpful, but I don't fault you for it. – Tommy Ash Mar 24 '15 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.