Created
June 14, 2014 17:45
-
-
Save s10wen/e3a42d4a3d10fba4b786 to your computer and use it in GitHub Desktop.
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 | |
# Adds WordPress zipped up: | |
wget http://wordpress.org/latest.tar.gz | |
# Unzip WordPress: | |
tar xfz latest.tar.gz | |
# Move the contents of WordPress back a folder: | |
mv wordpress/* ./ | |
# Remove the wordpress directory: | |
rmdir wordpress | |
# Remove the zip file: | |
rm -f latest.tar.gz | |
# Go to themes folder: | |
cd wp-content/themes/ | |
# Remove twentyfourteen, twentythirteen, twentytwelve themes: | |
rm -rf twenty* |
Found this earlier, may clean a few lines up? Just merges a few of the lines together :-)
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz
mv wordpress/* ./
rmdir ./wordpress/ && rm -f latest.tar.gz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use, copy the contents to a new file and save as
wordpress-install.sh
.cd
to the file and run withbash wordpress-install.sh
.