Guest User

Untitled

a guest
Nov 15th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # webiste info
  4. WP_TITLE=${WP_SITENAME//\"/}
  5. WP_HOME=$WP_HOME
  6. WP_USER=$WP_ADMIN_NAME
  7. WP_PASSWORD=$WP_ADMIN_PASS
  8. WP_EMAIL=$WP_ADMIN_EMAIL
  9.  
  10. # install
  11. if ! $( wp core is-installed --allow-root --path=/var/www/html/web/wp ); then
  12.  
  13. # install wordpress
  14. wp core install \
  15. --url=$WP_HOME \
  16. --title="$WP_TITLE" \
  17. --admin_user=$WP_USER \
  18. --admin_password=$WP_PASSWORD \
  19. --admin_email=$WP_EMAIL \
  20. --skip-email \
  21. --allow-root \
  22. --path=/var/www/html/web/wp
  23.  
  24. # enable all available plugins
  25. wp plugin activate --all
  26.  
  27. fi
  28.  
  29. # refresh permalinks
  30. wp rewrite structure '/%postname%/' --hard --allow-root
Add Comment
Please, Sign In to add comment