Skip to content

Instantly share code, notes, and snippets.

@samhotchkiss
Created June 28, 2016 22:21
Show Gist options
  • Save samhotchkiss/38dac797bf12bdc9809514d7e7704cb9 to your computer and use it in GitHub Desktop.
Save samhotchkiss/38dac797bf12bdc9809514d7e7704cb9 to your computer and use it in GitHub Desktop.
Creates a fresh install of Jetpack beta
#!/bin/bash
url="https://betadownload.jetpack.me/jetpack.zip"
opt=$1
if [ "rc" == "$1" ]; then
url="https://betadownload.jetpack.me/rc/jetpack.zip"
fi
if [ "repo" == "$1" ]; then
url="jetpack"
fi
wp core update
wp core update-db
wp jetpack disconnect blog
yes yes | wp jetpack reset options
wp plugin uninstall --deactivate jetpack
wp plugin install $url
wp plugin activate jetpack
wp plugin update akismet
wp plugin update vaultpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment