I'd like to have a crontab run once a day to keep some servers updated.
I thought adding @daily apt update && apt -y upgrade
to root crontab would work.
Apparently, I've done something wrong because it doesn't seem to update the system?
When I ssh in the motd says there's updates.
Any help is much appreciated!
I ran into a similar issue. It looks like you need to set the PATH environment variable in order to make apt-get work correctly if it gets called by cron.
Add the following
See this post for more details.