-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to 1.2 - Now sets perms for phpsuexec systems. No longer trie…
…s to create dbs on cPanel systems (cPanel API has changed). Bug fix.
- Loading branch information
Scot Hacker
committed
Aug 26, 2011
1 parent
db5a28d
commit 2e9ec17
Showing
4 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
WP-Mass-Tools v1.1 | ||
WP-Mass-Tools v1.2 | ||
Scot Hacker ([email protected]) | ||
http://birdhouse.org/software | ||
|
||
*** These tools must be run by root - they are not for users of standard hosting accounts. *** | ||
|
||
WP-Mass-Tools is a collection of tools (bash shell scripts) for managing lots of disparate WordPress installations on a single server. All installations are checked out via subversion, and their locations listed in a file. When upgrade time comes, a script is run to iterate through all registered sites, back up their databases just in case, and upgrade (svn sw) them to the new version. | ||
WP-Mass-Tools is a collection of tools (bash shell scripts) for managing lots of disparate WordPress installations on a single server. The system assumes you're working on a cPanel-based server, but it can be easily modified to work on other systems instead. All installations are checked out via subversion, and their locations listed in a file. When upgrade time comes, a script is run to iterate through all registered sites, back up their databases just in case, and upgrade (svn sw) them to the new version. | ||
|
||
HOW TO USE WP-MASS-TOOLS | ||
|
||
|
@@ -19,6 +19,8 @@ sh /path/to/scripts/wp-create.sh | |
|
||
Simply follow the prompts. When it's done, it will spit out a new line, to be added to the bottom of wp-sites.sh. You must add the line to wp-sites.sh manually - it's not done automatically. | ||
|
||
IMPORTANT FOR CPANEL ADMINISTRATORS: Because cPanel has changed the database creation API, this script no longer creates databases on cPanel systems. You'll need to create the database manually through cPanel, then run this script with matching credentials. If you can help modify this system to utilize the new cPanel APIs, please contribute code! | ||
|
||
|
||
CHECK FOR PLUGIN COMPATIBILITY | ||
If a major WP release has been made and you're worried about plugins breaking, you can use wp-mass-plugins.sh to spit out a list of all active plugins on all sites on the server. You can then compare the list to lists of known incompatible plugins on the internet. | ||
|
@@ -39,5 +41,10 @@ sh /path/to/scripts/wp-mass-upgrade.sh | tee wpuplog.txt | |
and follow the prompts. You'll see the output live, but will also have a complete record of the process in wpuplog.txt, which you should page through later to make sure there aren't any unexpected errors (e.g. sometimes customers will move their directories around and you'll need to update the paths in your site array). | ||
|
||
|
||
VERSION NOTES: | ||
|
||
1.1 Updated to use array of sites in a separate file | ||
|
||
1.2 No longer attempts to create the database on cPanel systems. Changes permissions modification to work on phpsuexec servers. In other words, it no longer changes ownership to user:nobody, but to user:user. Added protection against a situation - a bug - where if the array of sites had a blank line at the end, it would cd to / and start changing permissions! | ||
|
||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Array of sites under svn control. This file is shared by wp-mass-upgrade.sh and wp-mass-plugins.sh | ||
# format: "fullpath|URL|email|account" | ||
|
||
site=( | ||
sites=( | ||
"/home/joe/public_html/myblog|example.org/myblog|[email protected]|joe" | ||
"/home/jane/public_html|blahblah.com|[email protected]|jane" | ||
"/home/elmo/public_html/blog|elmo.edu/blog|[email protected]|elmo" | ||
|