I have a script called hourly-update.sh in /etc/cron.hourly/ which I would like to be run hourly. The script simply wraps APT-GET with a cycle of clean, autoclean, update and upgrade.
The script is owned by root, +x, runs fine from a Root Terminal, and runs fine with sudo under a standard account. However according to the Update Manager GUI, it does not appear the script is being executed since the package update information is usually something like 'The package update information was last updated 5 hours ago'.
I've looked at the Cron HowTo (https://help.ubuntu.com/community/CronHowto) and don't see what I am doing wrong:
Any ideas?anacron offers simple system-wide directories for running commands hourly, daily, weekly, and monthly. Scripts to be executed in said times can be placed in /etc/cron.hourly/, /etc/cron.daily/, /etc/cron.weekly/, and /etc/cron.monthly/. All scripts in each directory are run as root...
$ cat /etc/cron.hourly/hourly-update.sh
/usr/bin/apt-get upgrade -y