Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sudo -u "${user}" bash -s <<ILOVEBASH
export WP_CLI_CACHE_DIR=${webroot}
cd ${webroot}
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x ${webroot}/wp-cli.phar
./wp-cli.phar core download
./wp-cli.phar config create --dbname="${db_name}" --dbuser="${db_username}" --dbpass="${db_password}" --dbhost="${db_host}"
./wp-cli.phar db create
./wp-cli.phar core install --url="${domain}" --title="${blog_title}" --admin_user="${blog_username}" --admin_password="${blog_password}" --admin_email="${webmaster_email}"
#./wp-cli.phar plugin install https://github.com/wp-plugins/akismet/archive/master.zip --force
#./wp-cli.phar plugin install https://github.com/Yoast/wordpress-seo/archive/trunk.zip --force
#./wp-cli.phar plugin update --all
ILOVEBASH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.