Download and Tidy WordPress
Hoping to exand this a bit further in the future to make it even easier, but this should make grabbing a new WordPress setup easy and remove all the stuff you don't want. (Does require wget
)
wp-install () {
echo "Installing WordPress in '$1'"
wget http://wordpress.org/latest.zip
unzip latest.zip
mv wordpress $1
rm -rf latest.zip
cd $1
rm -rf wp-content/plugins/hello.php
rm -rf wp-content/themes/twentyten/
rm -rf wp-content/themes/twentyeleven/
}
Written by Neil Sweeney
Related protips
4 Responses
chmod -R 0777 $1
Oh c'mon man, don't do this. Did you hear about security? For wordpress only wp-content/{plugins,themes,uploads} dirs are required to be writable. And so all the files should have the 0644 permissions.
over 1 year ago
·
@gwinn D'oh! Wasn't supposed to be in there, that was for another script. I've removed it now.
over 1 year ago
·
@wolfiezero :)
over 1 year ago
·
Check out http://wp-cli.org/
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#