Skip to content

Instantly share code, notes, and snippets.

Created Oct 7, 2014
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 --title="realestate - A WordPress Site" --admin_user=admin --admin_password=password --allow-root
cd -
echo 'Updating WordPress in realestate/htdocs...'
wp core update --allow-root
wp core update-db --allow-root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment