Last Updated: June 11, 2021
·
1.023K
· wolfiezero

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/

}

4 Responses
Add your response

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 ·
over 1 year ago ·
over 1 year ago ·