Created
May 29, 2018 09:19
-
-
Save sergixnet/ce93d5c23b85dfd9675acbda0e8e01b8 to your computer and use it in GitHub Desktop.
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 | |
# This script updates WordPress core and database with WP-CLI | |
# Go to WordPress directory | |
cd htdocs | |
# Update WordPress | |
wp core update | |
# Update the database | |
wp core update-db | |
echo WordPress and the database updated OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment