Skip to content

Instantly share code, notes, and snippets.

@jwebcat
Created October 7, 2014 04:58
Show Gist options
  • Save jwebcat/2517db6fd32497eeddfb to your computer and use it in GitHub Desktop.
Save jwebcat/2517db6fd32497eeddfb to your computer and use it in GitHub Desktop.
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