I host a lot of WordPress sites which I’m in the process of moving from a stock Ubuntu server to Sympl. One thing I have on my old server is a Bash script which calls wp-cli to update WordPress core, plugins and themes (currently WordPress has built-in support for updating core, but you have to manually enable it for each and every theme/plugin, and it’s off by default).
Is this something which would be useful for other people to get into Sympl? For example, you might create a file config/wordpress
, and if that existed the following commands would be run each night (with ${site_path}
set to /srv/example.org/public/htdocs
):
/usr/bin/php /usr/local/bin/wordpress/wp-cli.phar core update --path=${site_path}
/usr/bin/php /usr/local/bin/wordpress/wp-cli.phar plugin update --all --path=${site_path}
/usr/bin/php /usr/local/bin/wordpress/wp-cli.phar theme update --all --path=${site_path}
I think it would need a package for wp-cli and then another package which depended on it to do the automatic cron job. I’m happy to look into it further if other people think it would be useful.