-
-
Save metinsaylan/486fc9c3ec60efc2526a to your computer and use it in GitHub Desktop.
This file contains 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 | |
# 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 my favorite plugins. This is a private repo... sorry | |
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 cusotm wp-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