But if you need an easy way to retrieve updates, here's a cronjob command:
0 8 * * 1-5 printf "From: My Website <my-website@example.com>\nTo: Me <me@example.com>\nSubject: Available Craft Updates\n$(~/my-project/site/craft update/info)" | /usr/sbin/sendmail -t
a craft cms plugin that checks for updates in craft core and installed plugins and sends out notifications (via email)
To install Update Notifier, follow these steps:
- Download & unzip the file and place the
craft-updatenotifier
directory into yourcraft/plugins
directory asupdatenotifier
. - -OR- do a
git clone https://github.com/fork/craft-updatenotifier.git
directly into yourcraft/plugins
folder and rename it toupdatenotifier
. You can then update it withgit pull
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
updatenotifier
for Craft to see it.
- Setup your notification email adresses as a comma separated list in the plugin settings.
- Setup a cronjob in the crontab to run the update check command (for example daily). use
which php
to find your php executable path.
0 0 * * * /usr/local/bin/php /var/www/my-site/craft/app/etc/console/yiic updatenotifier check
if you have a custom config path (which includes the necessary license.key file for the update check) you can tell yiic:
0 0 * * * /usr/local/bin/php /var/www/my-site/craft/app/etc/console/yiic --configPath=/var/www/my-site/craft/config/custom-dir/ updatenotifier check
Brought to you by Fork Unstable Media GmbH