Skip to content

Instantly share code, notes, and snippets.

@s10wen
Created June 14, 2014 17:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s10wen/e3a42d4a3d10fba4b786 to your computer and use it in GitHub Desktop.
Save s10wen/e3a42d4a3d10fba4b786 to your computer and use it in GitHub Desktop.
#!/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*
@s10wen
Copy link
Author

s10wen commented Jun 14, 2014

To use, copy the contents to a new file and save as wordpress-install.sh.

cd to the file and run with bash wordpress-install.sh.

@daveaspinall
Copy link

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