Skip to content

Instantly share code, notes, and snippets.

@marbaque
Forked from greatislander/pressbooks-install.sh
Created March 7, 2021 17:39
Show Gist options
  • Save marbaque/929aa37e75477ebe3cccbfc83d0b4e1d to your computer and use it in GitHub Desktop.
Save marbaque/929aa37e75477ebe3cccbfc83d0b4e1d to your computer and use it in GitHub Desktop.
wp core download
wp core config --dbname="dbname" --dbuser="dbuser" --dbpass="dbpass" --extra-php <<PHP
/* Pressbooks */
define( 'WP_DEFAULT_THEME', 'pressbooks-book' );
define( 'PB_PRINCE_COMMAND', '/usr/bin/prince' );
define( 'PB_KINDLEGEN_COMMAND', '/opt/kindlegen/kindlegen' );
define( 'PB_EPUBCHECK_COMMAND', '/usr/bin/java -jar /opt/epubcheck-3.0.1/epubcheck-3.0.1.jar' );
define( 'PB_XMLLINT_COMMAND', '/usr/bin/xmllint' );
PHP
wp core install --url="http://domain.com" --title="Pressbooks" --admin_user="username" --admin_password="password" --admin_email="user@domain.com"
wp core multisite-convert --title="Pressbooks"
wp plugin delete hello
wp plugin update-all
wp plugin install https://github.com/pressbooks/pressbooks/releases/download/v3.8.1/pressbooks-v3.8.1.zip --activate-network
wp theme list
wp theme enable pressbooks-book --network
wp theme enable clarke --network
wp theme enable donham --network
wp theme enable fitzgerald --network
wp theme enable austen --network
wp theme enable pressbooks-custom-css --network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment