Created
November 6, 2016 12:59
-
-
Save sorki/0b5fc4e4bf3192d32ec12b2edcaf2621 to your computer and use it in GitHub Desktop.
Wordpress update checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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