I have about 7 Debian servers I manage, and I would like to set them to automatically update themselves. So, I created a script as such:
#!/bin/sh
apt-get update
apt-get upgrade
and placed it on the root
's crontab list. Unfortunately, it always hangs on the Upgrade section, asking if I'm sure I want to upgrade. Because it's a cron job, I don't see the output until it emails me saying it's failed. Is there a way to have it skip that prompt, and just do the upgrade automatically?