Created
October 7, 2014 04:58
-
-
Save jwebcat/2517db6fd32497eeddfb 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
if [ ! -d "htdocs" ]; then | |
echo 'Installing WordPress (release version) in realestate/htdocs...' | |
mkdir ./htdocs | |
cd ./htdocs | |
wp core download --allow-root | |
wp core config --dbname="realestate" --dbuser=wp --dbpass=wp --dbhost="localhost" --allow-root | |
wp core install --url=realestate.dev --title="realestate - A WordPress Site" --admin_user=admin --admin_password=password --admin_email=demo@example.com --allow-root | |
cd - | |
else | |
echo 'Updating WordPress in realestate/htdocs...' | |
wp core update --allow-root | |
wp core update-db --allow-root | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment