Last active
July 8, 2017 03:12
-
-
Save rdlmda/5b36b8cee2fa393586218f9054888983 to your computer and use it in GitHub Desktop.
Upgrade everything WordPress via WP-CLI
This file contains hidden or 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 | |
| export PATH="/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/root/bin" | |
| wp cli update --yes --allow-root | |
| wp core update --path=/var/www/html/[path] --allow-root | |
| wp plugin update --all --path=/var/www/html/[path] --allow-root | |
| wp theme update --all --path=/var/www/html/[path] --allow-root |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Beware
As it i s currently, it borks internal WP updates because newly created files will be owned by
root.