Created
January 6, 2016 18:15
-
-
Save arthurpizza/df3a05b1965c14a2e3f4 to your computer and use it in GitHub Desktop.
Rapid local Wordpress Setup - NOT FOR DEPLOYMENT
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/sh | |
echo 'Pulling down Wordpress' | |
wget https://wordpress.org/latest.tar.gz | |
echo 'Extracting Wordpress' | |
tar -zxvf latest.tar.gz | |
cd wordpress | |
mv * ../ | |
cd .. | |
rm -Rf wordpress | |
rm latest.tar.gz | |
mv wp-config-sample.php wp-config.php | |
sed -i 's/database_name_here/wordpress/g' wp-config.php | |
sed -i 's/username_here/wordpress/g' wp-config.php | |
sed -i 's/password_here/password/g' wp-config.php | |
echo 'Done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment