Advertisement
Guest User

Untitled

a guest
Mar 6th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #!/bin/bash
  2. #Get variables
  3.  
  4. echo It looks like you want to install wordpress! Great! Lets get some info from you first.
  5.  
  6. echo What is the Domain Name?
  7. read domain
  8.  
  9. echo What is the Title of the site?
  10. read title
  11.  
  12. echo What do you want to use for the wordpress admin username?
  13. read wpUser
  14.  
  15. echo What about the wordpress admin pass?
  16. read wpPass
  17.  
  18. echo What about the admin user email address?
  19. read wpEmail
  20.  
  21. echo What is the database name?
  22. read dbName
  23.  
  24. echo What is the database username? Note, you will need the cpanel username example svmadmin_dbadmin
  25. read dbUser
  26.  
  27. echo What is the database user password?
  28. read dbPass
  29.  
  30. echo What theme would you like to use?
  31. read theme
  32.  
  33. #install wordpress
  34. echo "---------------Installing Wordpress----------------"
  35. wp core download
  36. wp core config --dbname="$dbName" --dbuser="$dbUser" --dbpass="$dbPass" --dbprefix=wp_ --dbhost=localhost
  37.  
  38. wp core install --url="$domain" --title=\""$title"\” --admin_user="$wpUser" --admin_password="$wpPass" --admin_email="$wpEmail"
  39.  
  40. echo "---------------Installing plugins and themes---------------"
  41. #install and activate plugins
  42. wp plugin install custom-css-js code-snippets siteorigin-panels Wordpress-seo wordfence enable-media-replace jetpack easy-fancybox woocommerce google-analytics-dashboard-for-wp image-watermark gravityformscli --activate
  43.  
  44. #install and activate gravity forms
  45. wp gf install --key=39743eb28a589c3730896b8ff3ff281a
  46. wp plugin activate gravityforms
  47.  
  48. wp theme install $theme --activate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement