Created
July 10, 2014 15:14
-
-
Save MattRoelle/c8edaeeaf9afb2a1c5c8 to your computer and use it in GitHub Desktop.
New WP on localhost
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/sh | |
echo "# Downloading latest.tar.gz" | |
wget wordpress.org/latest.tar.gz | |
echo "# Extracting" | |
tar -xf latest.tar.gz | |
echo "# Cleaning Up" | |
mv wordpress/* . | |
rm -r wordpress | |
echo "# Setting up mysql" | |
mysql -u root -p -e "create database $1db; grant usage on *.* to $1user@localhost identified by '$2'; grant all privileges on $1db.* to $1user@localhost;" | |
echo "# Cloning DA Bootstrap" | |
cd wp-content/themes | |
git clone https://github.com/Travo100/dental-affiliate-bootstrap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment