Skip to content

Instantly share code, notes, and snippets.

@jsoningram
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save jsoningram/0a6ed100ee274da33d57 to your computer and use it in GitHub Desktop.

Select an option

Save jsoningram/0a6ed100ee274da33d57 to your computer and use it in GitHub Desktop.
Install WordPress and Zurb Foundation
#!/bin/bash
# Set up WP install with base plugins
# Usage: wpbase <dirname>
# Assumes you're in your home directory and installing into ~/DIRNAME
dir=$1
# Install latest WP
cd ~/$dir
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
mv wordpress/* ~/$dir
# Install base plugins
git clone https://[email protected]/jsoningram/wpbase.git ~/$dir/wp-content/plugins/wpbase
cd ~/$dir/wp-content/plugins/wpbase
unzip '*.zip'
mv ~/$dir/wp-content/plugins/wpbase/* ~/$dir/wp-content/plugins
# Install custom plugin from GitHub
git clone https://github.com/jsoningram/cabbagecms.git ~/$dir/wp-content/plugins/cabbagecms
# Cleanup
rm -rf ~/$dir/wp-content/plugins/wpbase
rm ~/$dir/wp-content/plugins/*.zip
rm ~/$dir/latest.tar.gz
rm ~/$dir/wp-config-sample.php
# Download and open config for edting
cd ~/$dir
git clone https://gist.github.com/b3313c7457647cb0544c.git b3313c7457647cb0544c
mv ~/$dir/b3313c7457647cb0544c/wp-config.php ~/$dir/wp-config.php
rm -rf ~/$dir/b3313c7457647cb0544c/
vi ~/$dir/wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment