Skip to content

Instantly share code, notes, and snippets.

@MattRoelle
Created July 10, 2014 15:14
Show Gist options
  • Save MattRoelle/c8edaeeaf9afb2a1c5c8 to your computer and use it in GitHub Desktop.
Save MattRoelle/c8edaeeaf9afb2a1c5c8 to your computer and use it in GitHub Desktop.
New WP on localhost
#!/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