Skip to content

Instantly share code, notes, and snippets.

@sorki
Created November 6, 2016 12:59
Show Gist options
  • Save sorki/0b5fc4e4bf3192d32ec12b2edcaf2621 to your computer and use it in GitHub Desktop.
Save sorki/0b5fc4e4bf3192d32ec12b2edcaf2621 to your computer and use it in GitHub Desktop.
Wordpress update checker
#!/bin/bash
WP_DIR=/var/www/<FIXME>
/usr/local/bin/wp --path=$WP_DIR core check-update --quiet
if [ "$?" != "0" ]; then
Wordpress update required
/usr/local/bin/wp --path=$BLOG_DIR core check-update
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment