Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Download the core
  4. wp core download
  5.  
  6.  
  7.  
  8. #DB SETUP
  9. printf "What is your dbname: "
  10. read DBNAME
  11.  
  12. printf "What is your dbuser: "
  13. read DBUSER
  14.  
  15. printf "What is your dbpass: "
  16. read DBPASS
  17.  
  18. printf "What is your dbhost: "
  19. read DBHOST
  20.  
  21. printf "What is your dbprefix (with the '_'): "
  22. read DBPREFIX
  23.  
  24. #make it so
  25. wp core config --dbname=$DBNAME --dbuser=$DBUSER --dbpass=$DBPASS --dbprefix=$DBPREFIX --dbhost=$DBHOST
  26.  
  27.  
  28.  
  29. #WP SETUP
  30. printf "What is your WP URL: "
  31. read WPURL
  32.  
  33. printf "What admin username would you like to use?: "
  34. read WPADMINNAME
  35.  
  36. printf "What's your email?: "
  37. read WPADMINEMAIL
  38.  
  39. printf "Which password would you like?: "
  40. read WPADMINPASS
  41.  
  42. printf "What is the title of this WordPress site?: "
  43. read WPNAME
  44.  
  45. #make it so
  46. wp core install --url=$WPURL --title=$WPNAME --admin_name=$WPADMINNAME --admin_email=$WPADMINEMAIL --admin_password=$WPADMINPASS
  47.  
  48.  
  49.  
  50. #set the permalinks
  51. wp option update permalink_structure '/%postname%/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement