Ubuntu Server 20.04LTS
Just for testing/curiosity reasons, I setup a crontab:
Code:
0 0 * * SUN apt update && apt upgrade -y && reboot
It doesn't complete because of the prompt below.
This machine runs Ubiquiti's Unifi controller software (for my Wifi) installed. When running apt upgrade, there is a prompt for a question about backups:
Code:
Package configuration
┌────────────────────────────┤ Configuring unifi ├─────────────────────────────┐
│ │
│ It is recommended that you create a backup before installing a new version. │
│ │
│ Do you have a backup? │
│ │
│ <Yes> <No> │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Normally, passing the apt upgrade -y switch is sufficient but not in this case because of the prompt above. Is there a way to bypass or auto answer yes to this during the upgrade. I'll be testing the ubuntu auto unattended-upgrades as well, but was curious about doing it this way.
Questions/Comments?
Thanks
Erik