Skip to content

Instantly share code, notes, and snippets.

@JamesTheHacker
Created January 26, 2020 16:47
Show Gist options
  • Save JamesTheHacker/44d08d3beb9018e30fc84594d529d044 to your computer and use it in GitHub Desktop.
Save JamesTheHacker/44d08d3beb9018e30fc84594d529d044 to your computer and use it in GitHub Desktop.
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