Skip to content

Instantly share code, notes, and snippets.

@jwebcat
Created Oct 7, 2014
Embed
What would you like to do?
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